verify_user first, before authorizing resources, so that users are first prompt to sign in, instead of being presented with an 'access denied' error message.
This commit is contained in:
parent
9d0c9b5b25
commit
3f8a648f17
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
class ProposalController < ApplicationController
|
||||
before_filter :verify_user, except: [:show]
|
||||
load_and_authorize_resource :conference, find_by: :short_title
|
||||
load_and_authorize_resource :event, parent: false
|
||||
before_filter :verify_user, except: [:show]
|
||||
before_filter :setup
|
||||
|
||||
def setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue