1
0
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:
Toshi MARUYAMA 2019-10-22 15:53:48 +00:00
parent e079d49dd7
commit 40f1b0f3f3

View File

@ -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