From: Tom Hughes Date: Mon, 29 Mar 2021 19:31:24 +0000 (+0100) Subject: Add missing callbacks to session controller X-Git-Tag: live~2210 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/bf3743f190fa8fadf7c9a82db73997e2b604b133 Add missing callbacks to session controller --- diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 130471670..7e6a740f3 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -4,6 +4,9 @@ class SessionsController < ApplicationController layout "site" before_action :disable_terms_redirect, :only => [:destroy] + before_action :authorize_web + before_action :set_locale + before_action :check_database_readable before_action :require_cookies, :only => [:new] authorize_resource :class => false