Revision 229d7436
Added by Joseph Magen over 10 years ago
app/models/role.rb | ||
---|---|---|
# Built-in roles
|
||
BUILTIN_DEFAULT_USER = 1
|
||
BUILTIN_ANONYMOUS = 2
|
||
audited :allow_mass_assignment => true
|
||
|
||
scope :givable, lambda { where(:builtin => 0).order(:name) }
|
||
scope :for_current_user, lambda { User.current.admin? ? {} : where(:id => User.current.role_ids) }
|
Also available in: Unified diff
fixes #3975 - add audit to classes Domain, Subnet, SmartProxy, Role, Usergroup, AuthSource, Image, Bookmark that were not audited