Resolves #2018 See https://github.com/RolifyCommunity/rolify#cached-roles-to-avoid-n1-issue
7 lines
230 B
Ruby
7 lines
230 B
Ruby
module Admin
|
|
module VolunteersHelper
|
|
def can_manage_volunteers?(conference)
|
|
current_user.has_cached_role?(:organizer, conference) || current_user.has_cached_role?(:volunteers_coordinator, conference)
|
|
end
|
|
end
|
|
end
|