From: Andy Allan Date: Wed, 10 Oct 2018 14:54:16 +0000 (+0200) Subject: Remove temporary development code X-Git-Tag: live~2772^2~9 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b7baa2c10ac493271a26a89deede2869927f84ec Remove temporary development code --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ad91b3a3b..0d43393fd 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,5 @@ class ApplicationController < ActionController::Base include SessionPersistence - # check_authorization protect_from_forgery :with => :exception diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 09bdd6d3e..d18cf188c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,8 +1,6 @@ class UsersController < ApplicationController layout "site", :except => [:api_details] - skip_authorization_check :only => [:login, :logout] - skip_before_action :verify_authenticity_token, :only => [:api_read, :api_users, :api_details, :api_gpx_files, :auth_success] before_action :disable_terms_redirect, :only => [:terms, :save, :logout, :api_details] before_action :authorize, :only => [:api_details, :api_gpx_files]