Project

General

Profile

Actions

Feature #13373

closed

copy a (sub-)project as "non-admin" user

Added by Christian Buczek over 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Permissions and roles
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

Hi there,

I haven´t found a way or workaround for the follow task:

  • a normal user is allowed to create any projects (maybe the project foo )
  • this user where added to manager role for this project
  • this user also can edit his created project

So far, so good.

But I found no way that this user can copy his created project unless he is no redmine-admin (I only found the copy-dialog for projects under administration menu point :-/

Is it possible to set this right under roles ?
I only will allowed the user to get not permission denied error when he call http:// ... /projects/foo/copy
Possible destination places for the project copy seems for me:
  • all subprojects of source-project
  • root (copy as main-project)
  • any project where user has permission to create/edit project (nice to have, but not really necessary)

Related issues

Is duplicate of Redmine - Feature #4687: Add copy project permissionNew2010-01-29

Actions
Actions #1

Updated by Christian Buczek over 11 years ago

There was already a plugin for deleting projects from their owner...

Delete Project plugin

Delete project is a plugin which adds an ACL to allow non-admin users to delete their own projects.
Author: Anthony Paul
Latest release: 0.0.3, 2010-05-05
Compatible with: Redmine 0.9.3
Discussions: http://www.redmine.org/boards/3/topics/13521
Public SCM: n/a
Public ITS: n/a

source: http://www.redmine.org/projects/redmine/wiki/Plugin_List#Customer-plugin

But this is still offline (while only for 0.x version).I can imagine that both features has the same logic (for verify permission).

Actions #2

Updated by Christian Buczek over 11 years ago

I got a dirty workaround which works for me:

./htdocs/app/controllers/projects_controller.rb
somewhere between line 20 and 30:

  # CB: 2013-04-15 nachfolgend die Beschränkung, dass nur ein Admin ein Projekt kopieren kann, entfernt.
  #
  # old: before_filter :authorize_global, :only => [:new, :create, :copy]
  # old: before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
  before_filter :authorize_global, :only => [:new, :create ]
  before_filter :require_admin, :only => [ :archive, :unarchive, :destroy ]

now every user is abled to copy projects by entering the follows URL:

  • http: //localhost/redmine/projects/PROJECT_HE_IS_INVOLVED/ copy

note: dirty workaround, because every user can copy every project when he knows the internal project-id. By copying a project in which the user isn´t involved, he also has no access to the copy of the project as long he didn´t set the flag 'public project' by copying :-/

Actions #3

Updated by Sebastian Paluch over 9 years ago

+1
and duplicated by #17961

Actions #4

Updated by Jürgen Depicker over 9 years ago

+1
and duplicate of #4687.

Actions #5

Updated by Go MAEDA over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Sebastian Paluch wrote:

and duplicated by #17961

Jürgen Depicker wrote:

and duplicate of #4687.

Thanks for pointing it out.

Actions #6

Updated by Go MAEDA over 9 years ago

  • Is duplicate of Feature #4687: Add copy project permission added
Actions

Also available in: Atom PDF