add volunteers helper
This commit is contained in:
parent
2e0f7e9b42
commit
d9925f00e9
5 changed files with 64 additions and 0 deletions
11
app/helpers/admin/volunteers_helper.rb
Normal file
11
app/helpers/admin/volunteers_helper.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue