mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code layout clean up app/models/role.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18830 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e079d49dd7
commit
40f1b0f3f3
@ -287,7 +287,10 @@ class Role < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def allowed_actions
|
def allowed_actions
|
||||||
@actions_allowed ||= allowed_permissions.inject([]) { |actions, permission| actions += Redmine::AccessControl.allowed_actions(permission) }.flatten
|
@actions_allowed ||=
|
||||||
|
allowed_permissions.inject([]) {|actions, permission|
|
||||||
|
actions += Redmine::AccessControl.allowed_actions(permission)
|
||||||
|
}.flatten
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_deletable
|
def check_deletable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user