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 /help/app/controllers/tickets_controller.rb | |
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 'help/app/controllers/tickets_controller.rb')
-rw-r--r-- | help/app/controllers/tickets_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb index c193ff4..d65ee43 100644 --- a/help/app/controllers/tickets_controller.rb +++ b/help/app/controllers/tickets_controller.rb @@ -4,7 +4,7 @@ class TicketsController < ApplicationController respond_to :html, :json #has_scope :open, :type => boolean - before_filter :authorize, :only => [:index] + before_filter :require_login, :only => [:index] before_filter :fetch_ticket, :only => [:show, :update, :destroy] # don't now have an edit method before_filter :fetch_user before_filter :set_title |