Fix display of volunteer events

This commit is contained in:
Michael Ball 2020-07-27 00:23:56 -07:00
parent d1b2ad3528
commit 13d78c2609
3 changed files with 13 additions and 12 deletions

View file

@ -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