refractor can_manage_volunteers?
This commit is contained in:
parent
dbffece956
commit
60afb2a474
1 changed files with 1 additions and 5 deletions
|
|
@ -1,11 +1,7 @@
|
||||||
module Admin
|
module Admin
|
||||||
module VolunteersHelper
|
module VolunteersHelper
|
||||||
def can_manage_volunteers?(conference)
|
def can_manage_volunteers?(conference)
|
||||||
if (current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
|
current_user.has_role?(:organizer, conference) || current_user.has_role?(:volunteers_coordinator, conference)
|
||||||
true
|
|
||||||
else
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue