X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/84681ff8683bb7c8f410b2dc13ca5b8695e413a4..9143fd61e8ae268ec40837efdb2b7cae49783b4d:/app/controllers/sessions_controller.rb?ds=inline 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]