OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/global_roles/access_control_patch.rb

13 lines
317 B

module GlobalRoles
module AccessControlPatch
def self.included(base)
base.class_eval do
def self.global_permissions
@global_permissions ||= @permissions.select {|p| p.global?}
end
end
end
end
end
Redmine::AccessControl.send(:include, GlobalRoles::AccessControlPatch)