diff options
author | Azul <azul@leap.se> | 2014-02-07 14:38:56 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-10 14:26:30 +0100 |
commit | 3f9dc65636afb57fed441978dca4bf7d3209bd2d (patch) | |
tree | a3ede0e3b6e1f2ea952848f2c3b5b62249105d76 /users/app/controllers/v1 | |
parent | e1243d02953b4012d6bb216efc9b0606809ab4bb (diff) |
rename authorize to require_login
authorize_admin -> require_admin
also add require_token which will ensure token has been used for auth.
Diffstat (limited to 'users/app/controllers/v1')
-rw-r--r-- | users/app/controllers/v1/users_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/controllers/v1/users_controller.rb b/users/app/controllers/v1/users_controller.rb index 0903888..a16c6e9 100644 --- a/users/app/controllers/v1/users_controller.rb +++ b/users/app/controllers/v1/users_controller.rb @@ -3,8 +3,8 @@ module V1 skip_before_filter :verify_authenticity_token before_filter :fetch_user, :only => [:update] - before_filter :authorize, :only => [:update] - before_filter :authorize_admin, :only => [:index] + before_filter :require_login, :only => [:update, :index] + before_filter :require_admin, :only => [:index] respond_to :json |