change to can_manage_volunteers?

This commit is contained in:
hitman 2017-03-17 18:50:29 +05:30 committed by Stella Rouzi
parent 85fa39870d
commit b36d02ceec
2 changed files with 4 additions and 8 deletions

View file

@ -1,11 +1,7 @@
module Admin
module VolunteersHelper
def can_manage_volunteers(conference)
if (current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
true
else
false
end
def can_manage_volunteers?(conference)
!!(current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
end
end
end