Fix display of volunteer events
This commit is contained in:
parent
d1b2ad3528
commit
13d78c2609
3 changed files with 13 additions and 12 deletions
|
|
@ -259,7 +259,7 @@ class User < ApplicationRecord
|
|||
# TODO: Use a real authorization in the right place....
|
||||
def manages_volunteers?(conference)
|
||||
organizer_roles = get_roles['organizer']
|
||||
organizer_roles&.include?(conference.short_title) # TODO or Volunteer Coorinator.
|
||||
organizer_roles&.include?(conference.short_title) # TODO or Volunteer Coorinator.
|
||||
end
|
||||
|
||||
def registered
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue