summaryrefslogtreecommitdiff
path: root/engines/support/app
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-28 15:55:29 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-28 15:55:29 -0300
commita894966e425f27c31e7da196658c6ddee3fc3714 (patch)
tree61249cb9f90f46af337547993d77230491c69530 /engines/support/app
parentea71f09ee23dbc080dd29adf2c3b8fa61f848c22 (diff)
Disable CSRF token verification on ticket creation.
Diffstat (limited to 'engines/support/app')
-rw-r--r--engines/support/app/controllers/tickets_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/support/app/controllers/tickets_controller.rb b/engines/support/app/controllers/tickets_controller.rb
index c1abfa2..8cccc2f 100644
--- a/engines/support/app/controllers/tickets_controller.rb
+++ b/engines/support/app/controllers/tickets_controller.rb
@@ -4,6 +4,8 @@ class TicketsController < ApplicationController
respond_to :html, :json
#has_scope :open, :type => boolean
+ skip_before_filter :verify_authenticity_token, :only => [:create]
+
before_filter :require_login, :only => [:index]
before_filter :fetch_ticket, except: [:new, :create, :index]
before_filter :require_ticket_access, except: [:new, :create, :index]