X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a543e731c0433b2aa0f0f1583f7c70182a084fd5..226c41be692452129227f30d67f2d847e510015c:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 904388b9d..5018dcc42 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base def authorize_web if session[:user] - @user = User.find(session[:user], :conditions => {:status => ["active", "confirmed", "suspended"]}) + @user = User.where(:status => ["active", "confirmed", "suspended"]).find(session[:user]) if @user.status == "suspended" session.delete(:user)