X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8c0f5752809f7a21aa62babc05f35a8f881d2141..90e787eed845a850eab63a22831c9cfa47f4dd3d:/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]