X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e7ede890e8e948236d3dbc48e24aca00cd01f62..46f642d5cd88d51bd6e80e48cc24f7a6da68d4c7:/app/controllers/sessions_controller.rb diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index abbaf5e92..19fe05f30 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -3,8 +3,8 @@ class SessionsController < ApplicationController layout "site" - before_action :disable_terms_redirect, :only => [:destroy] - before_action :authorize_web + before_action :authorize_web, :except => [:destroy] + before_action -> { authorize_web(:skip_terms => true) }, :only => [:destroy] before_action :set_locale before_action :check_database_readable before_action :require_cookies, :only => [:new]