X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/41000078b9e0131d75ce610f148655fb7b32da73..c819bec8b7b81fb2766a67247440375e4a837d10:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a809139ce..049f6e02e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,6 +5,8 @@ class ApplicationController < ActionController::Base before_action :fetch_body + helper_method :current_user + def authorize_web if session[:user] self.current_user = User.where(:id => session[:user]).where("status IN ('active', 'confirmed', 'suspended')").first