]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/sessions_controller.rb
Adds storing note's properties to notes
[rails.git] / app / controllers / sessions_controller.rb
index abbaf5e921e45aedf89e60d7057023b9a0374143..19fe05f3082574961423f1f3965abcd53e386a43 100644 (file)
@@ -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]