mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
added logic for available conferences based on roles in comments_controller.rb
This commit is contained in:
parent
5664b99dc4
commit
bcd8e41670
5 changed files with 48 additions and 44 deletions
|
|
@ -1,11 +1,9 @@
|
|||
module Admin
|
||||
class CommentsController < Admin::BaseController
|
||||
load_and_authorize_resource :conference, find_by: :short_title
|
||||
load_and_authorize_resource
|
||||
|
||||
|
||||
def index
|
||||
@ordered_events = Event.order(:title).all
|
||||
@conferences_available = Conference.with_roles([:admin, :organizer, :cfp], current_user)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue