refractor can_manage_volunteers?

This commit is contained in:
hitman 2017-03-20 22:22:50 +05:30 committed by Agrim Mittal
parent 0bc97c127f
commit f27f292419

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
current_user.has_role?(:organizer, conference) || current_user.has_role?(:volunteers_coordinator, conference)
end
end
end