Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix[Op#57516]: use more specific perm check

Kabiru Mwenja1a061fed1d93
diff --git a/app/components/admin/custom_fields/custom_field_projects/row_component.rb b/app/components/admin/custom_fields/custom_field_projects/row_component.rb
index ee4cc22f9df..51ce950bbac 100644
--- a/app/components/admin/custom_fields/custom_field_projects/row_component.rb
+++ b/app/components/admin/custom_fields/custom_field_projects/row_component.rb
@@ -43,7 +43,7 @@ module Admin
private
def more_menu_detach_project
- if User.current.admin && project.active?
+ if User.current.allowed_in_project?(:select_custom_fields, project)
{
scheme: :default,
icon: nil,