Patch #33945

Allow normal users to delete projects with permission

Added by Holger Just 26 days ago. Updated 12 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Projects
Target version:4.2.0

Description

In self-managed environments where users can create and manage projects on their own without Administrator involvement, it might be helpful to allow users to delete their own projects when they are not needed anymore. Using the existing permissions system, this can be easily managed.

The attached patch implements this against the current trunk (r19997). We allow to delete a project if the user has the necessary permission in the project AND if the project is a leaf-project without further subprojects.

The latter restriction is intended as a fail-safe to prevent users from deleting large project trees. We could theoretically allow the deletion of whole trees if the user has the permission to delete all projects in the tree. However, this check would likely be prone to races and helps only for uncommon cases. Also, Administrators can delete full project trees as before.

The necessary permission is not granted to any role by default so that an Administrator has to consciously grant this permission if required.

0001-Allow-normal-users-to-delete-a-project.patch Magnifier (7.72 KB) Holger Just, 2020-09-01 17:08


Related issues

Duplicated by Redmine - Feature #15423: Permission to delete own project Closed

Associated revisions

Revision 20034
Added by Go MAEDA 12 days ago

Allow normal users to delete a project (#33945).

Patch by Holger Just.

Revision 20035
Added by Go MAEDA 12 days ago

Update locales (#33945).

History

#1 Updated by Go MAEDA 26 days ago

  • Duplicated by Feature #15423: Permission to delete own project added

#2 Updated by Go MAEDA 26 days ago

  • Target version set to Candidate for next major release

#3 Updated by Go MAEDA 16 days ago

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

#4 Updated by Go MAEDA 12 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch.

Thank you for improving Redmine.

Also available in: Atom PDF