Project

General

Profile

Actions

Patch #25154

open

Allow non-administrator users to copy certain projects

Added by Nick Vanpraet about 7 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Currently only administrators can copy projects, which is not ideal because Project Managers should be able to create, edit and copy projects but not have full access to everything else. The copying is important, because certain projects are used as templates and are only ever copied to speed everything up.

Attached is a patch which removes the :copy from the require_admin before_filter and instead adds its own method to determine copy access. This method essentially checks if the user can edit the project, and if so grants access to copy. The patch also adds a button to copy a project to the contextual links area when viewing a project if the current user can edit the project.

Button:

I realize this patch is incomplete (I don't use translatable labels for the button and I should ideally create a new permission instead of using "edit") but this is as far as my current knowledge can take me. In the mean time I hope this patch is a good jumping off point for either other developers or core developers to use for further improvements.


Files

patch.separate_copy_permission.patch (2.34 KB) patch.separate_copy_permission.patch Nick Vanpraet, 2017-02-22 14:31
new-copy-button.png (15.7 KB) new-copy-button.png Nick Vanpraet, 2017-02-22 14:32
project_copy.patch (2.23 KB) project_copy.patch Charlie Savage, 2019-06-22 01:04

Related issues

Related to Redmine - Feature #4687: Add copy project permissionNew2010-01-29

Actions
Actions

Also available in: Atom PDF