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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Exclude builtin sharing permissions to be selectable for group memberships
Henriette Darge1832689871c6
diff --git a/app/models/role.rb b/app/models/role.rbindex f2c06f8a24d..a30278a45b0 100644--- a/app/models/role.rb+++ b/app/models/role.rb@@ -77,7 +77,16 @@ class Role < ApplicationRecordinclusion: { in: ->(*) { Role.subclasses.map(&:to_s) } }def self.givable- where.not(builtin: [BUILTIN_NON_MEMBER, BUILTIN_ANONYMOUS])+ where+ .not(+ builtin: [+ Role::BUILTIN_NON_MEMBER,+ Role::BUILTIN_ANONYMOUS,+ Role::BUILTIN_WORK_PACKAGE_VIEWER,+ Role::BUILTIN_WORK_PACKAGE_COMMENTER,+ Role::BUILTIN_WORK_PACKAGE_EDITOR+ ]+ ).order(Arel.sql('position'))end