Feature #4687

Add copy project permission

Added by Nick Fitzgerald about 11 years ago. Updated 2 months ago.

Status:NewStart date:2010-01-29
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Projects
Target version:Candidate for next major release
Resolution:

Description

With the ability to copy projects, it would be nice to be able to grant permissions to do so. Currently only Redmine administrators can copy projects. If this permission is added a Copy project link could be added on the Overview tab next to the Add subject link.

diff.patch Magnifier (5.08 KB) Mizuki ISHIKAWA, 2020-02-19 07:08

project_copy.patch Magnifier (5.6 KB) Markus Gerhold, 2020-04-24 08:45

4687-v2.patch Magnifier (5.01 KB) Go MAEDA, 2021-02-07 08:52


Related issues

Related to Redmine - Patch #25154: Allow non-administrator users to copy certain projects New
Duplicated by Redmine - Feature #17961: permissions for copy project Closed
Duplicated by Redmine - Feature #13373: copy a (sub-)project as "non-admin" user Closed
Duplicated by Redmine - Feature #7118: Possibility to allow users to copy a project Closed 2010-12-16

History

#1 Updated by Kyle Corupe about 11 years ago

I 2nd this, this feature would be very nice to have. If someone has permission to be able to create a project they should be able to copy one.

#2 Updated by Harwant Pannu about 11 years ago

In my version (0.8.4.stable.2777), only administrators can create new projects. If the latest version allows permission grant to non-Administrators for creating new projects then the request makes sense. I will suggest the following logic to allow project copy to an individual:

if (user is allowed to create new a projects) AND (user is a manager or something equivalent for this project) then user can copy this project

This will ensure that both ends are covered, sufficient permissions to the project to copy and permissions to create a new project.

Thanks.

#3 Updated by Enderson Maia about 11 years ago

+1

I really need this one!

#4 Updated by Enderson Maia about 11 years ago

Harwant Pannu wrote:

In my version (0.8.4.stable.2777), only administrators can create new projects. If the latest version allows permission grant to non-Administrators for creating new projects then the request makes sense. I will suggest the following logic to allow project copy to an individual:

if (user is allowed to create new a projects) AND (user is a manager or something equivalent for this project) then user can copy this project

This will ensure that both ends are covered, sufficient permissions to the project to copy and permissions to create a new project.

Thanks.

I think both permission could exist, create and copy.

In my case I have a role that can only create sub-projects, and he has this role on a "TOP Project", now I'm using some projects like templates, and I need a role that can only instantiate this template projects, if I give him a role on this template projects with the copy_project permission, he's able to create new projects just from copies.

Did I make myself clear ?

#5 Updated by Pedro Gutierrez almost 11 years ago

+1
We are creating template projects, but it won't be useful if people can't copy them to create their own projects. As it is now they always have to ask an administrator to create a copy.

An additional permission for copying would be great.

Pedro

#6 Updated by Matthew Houston over 7 years ago

I know this is an old ticket but there hasn't been any movement. Any chance of this?

#7 Updated by Riccardo Rocca over 7 years ago

+1

Necessary for our teams!

#8 Updated by David Tremblay over 7 years ago

+1 necessary on our side

#9 Updated by Thibaut Comte over 6 years ago

+1

Is there any updates on this feature?

#10 Updated by J├╝rgen Depicker about 6 years ago

+1 Any nice soul worked on this?

#11 Updated by Sebastian Paluch about 6 years ago

+1
and duplicated by #13373 and #17961.

#12 Updated by Go MAEDA almost 6 years ago

#13 Updated by Go MAEDA almost 6 years ago

  • Duplicated by Feature #13373: copy a (sub-)project as "non-admin" user added

#14 Updated by Stefan Mischke almost 6 years ago

+1
Having to start every new project from scratch to me seems quite unagile...

#15 Updated by noemie bolo over 5 years ago

+1
it would be so helpful !!!

#16 Updated by Luis Blasco about 5 years ago

+1
Thanks in advance!

#17 Updated by Maximilian Hackenschmied over 4 years ago

+1
Would really save us some time as it removes a bottleneck! Thanks in advance!

#18 Updated by Stephane Evr over 4 years ago

+1

#19 Updated by Mischa The Evil about 4 years ago

  • Duplicated by Feature #7118: Possibility to allow users to copy a project added

#20 Updated by Mischa The Evil about 4 years ago

  • Related to Patch #25154: Allow non-administrator users to copy certain projects added

#21 Updated by Eva Encabo over 3 years ago

+1 It's a basic function

#22 Updated by Mizuki ISHIKAWA about 1 year ago

I have attached the patch.
Users with copy_project permission can copy from projects/show.


Even if you do not have view_issues permission of the copy source project, you can copy issues from the source project if you have copy_project permission.
If you change the copied project to public at that time, you will be able to see issues that you would not have permission to see.
That is, the copy_project permission includes various permissions such as view_issues, view_messages, and view_wiki.

I think it is necessary to discuss whether there is a problem with the copy_project authority as the authority design policy.

#23 Updated by Go MAEDA about 1 year ago

  • Target version set to Candidate for next major release

#24 Updated by Markus Gerhold 12 months ago

I've attached a patch, similar to the one above, where the user is allowed to copy projects if he has add_project permission. If one is allowed to create projects he should also be able to copy projects. The current user is also added as default member to the copied project, just like when creating a project.

#25 Updated by Go MAEDA 2 months ago

Markus Gerhold wrote:

If one is allowed to create projects he should also be able to copy projects. The current user is also added as default member to the copied project, just like when creating a project.

I think it would be a security issue if users who have "Create project" permission are allowed to copy a project. This is because the user who has copied a project can have more permissions if "Role given to a non-admin user who creates a project" (Administration > Settings > Projects) is set.

Depending on the settings, users who copy a project will be able to see information in the destination that they are not allowed to see in the source project.

#26 Updated by Go MAEDA 2 months ago

Updated the patch for the latest trunk (r20739).

#27 Updated by Go MAEDA 2 months ago

I found an issue in the patch.

When a user attempts to copy a parent project, a validation error "Subproject of is invalid" is shown if the user does not have "Copy project" permission for subprojects.

I think the "Copy" button for the project should not be shown if the user does not have "Copy project" permission for subprojects.

"Delete project" permission (#33945) behaves like that. If you don't have permission for subprojects, "Delete" button does not appear on the parent.

Also available in: Atom PDF