Skip to content

Commit

Permalink
Swap order if prepend_before_filters
Browse files Browse the repository at this point in the history
Otherwise authorize is called before authenticate
  • Loading branch information
jomz committed Feb 23, 2014
1 parent dd2f1a5 commit 32719d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/radiant/admin_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class AdminController < ::Radiant::ApplicationController
protect_from_forgery

# from login system
prepend_before_filter :authenticate, :authorize
prepend_before_filter :authorize, :authenticate

before_filter :set_current_user
before_filter :set_user_locale
Expand Down

0 comments on commit 32719d8

Please sign in to comment.