From 6d79f6caa0c5b9fc370ad3365677b8358b4cf67f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 16 Apr 2012 15:20:23 +0200 Subject: [PATCH] Removed CSRF checks (not needed because of JSON store). --- app/controllers/application_controller.rb | 1 - app/controllers/ticket_overviews_controller.rb | 1 - app/controllers/tickets_controller.rb | 1 - 3 files changed, 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 228150b47..5cfc6ef7a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,5 @@ class ApplicationController < ActionController::Base include UserInfo - protect_from_forgery # http_basic_authenticate_with :name => "test", :password => "ttt" helper_method :current_user, :authentication_check, :config_frontend, :user_data_full diff --git a/app/controllers/ticket_overviews_controller.rb b/app/controllers/ticket_overviews_controller.rb index e3119f3da..f3be59117 100644 --- a/app/controllers/ticket_overviews_controller.rb +++ b/app/controllers/ticket_overviews_controller.rb @@ -1,5 +1,4 @@ class TicketOverviewsController < ApplicationController - skip_before_filter :verify_authenticity_token before_filter :authentication_check # GET /tickets diff --git a/app/controllers/tickets_controller.rb b/app/controllers/tickets_controller.rb index c52758879..78dd598bd 100644 --- a/app/controllers/tickets_controller.rb +++ b/app/controllers/tickets_controller.rb @@ -1,5 +1,4 @@ class TicketsController < ApplicationController - skip_before_filter :verify_authenticity_token before_filter :authentication_check # GET /tickets