Skip to content
Browse files

Swap order if prepend_before_filters

Otherwise authorize is called before authenticate
  • Loading branch information...
1 parent dd2f1a5 commit 32719d88bb5d6e65a0327b14c245a82b6f11f093 @jomz jomz committed Feb 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/radiant/admin_controller.rb
View
2 app/controllers/radiant/admin_controller.rb
@@ -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

0 comments on commit 32719d8

Please sign in to comment.
Something went wrong with that request. Please try again.