mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 21:54:06 +00:00
change to can_manage_volunteers?
This commit is contained in:
parent
85fa39870d
commit
b36d02ceec
2 changed files with 4 additions and 8 deletions
|
|
@ -4,7 +4,7 @@ module Admin
|
|||
load_and_authorize_resource :conference, find_by: :short_title
|
||||
|
||||
def index
|
||||
if can_manage_volunteers(@conference)
|
||||
if can_manage_volunteers?(@conference)
|
||||
render :index
|
||||
else
|
||||
authorize! :index, :volunteer
|
||||
|
|
@ -12,7 +12,7 @@ module Admin
|
|||
end
|
||||
|
||||
def show
|
||||
if can_manage_volunteers(@conference)
|
||||
if can_manage_volunteers?(@conference)
|
||||
if @conference.use_vpositions
|
||||
@volunteers = @conference.registrations.joins(:vchoices).uniq
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue