add volunteers helper

This commit is contained in:
hitman 2017-03-16 22:31:42 +05:30 committed by Stella Rouzi
parent 2e0f7e9b42
commit d9925f00e9
5 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,11 @@
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
end
end
end