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/app/models/global_role.rb

15 lines
356 B

class GlobalRole < Role
has_many :principal_roles, :foreign_key => :role_id, :dependent => :destroy
has_many :principals, :through => :principal_roles
def allowed_to?(action)
has_permission?(action)
end
def setable_permissions
Redmine::AccessControl.global_permissions
end
#undef_method :members
#remove_method :member_roles
end