プロジェクト

全般

プロフィール

Vote #78265

未完了

Allow non-administrator users to copy certain projects

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
0
issue_org_id:
25154
author_id:
209138
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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:
!new-copy-button.png!

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.


journals

Note: this patch is for Redmine version 3.3.2-stable
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Duped by #18835
--------------------------------------------------------------------------------
Updated patch for Redmine 4.0.3
--------------------------------------------------------------------------------


related_issues

relates,New,4687,Add copy project permission

Admin Redmine さんが約2年前に更新

  • カテゴリProjects_11 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0