X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/abb66fa808f09469306e6b03b21539eb57b74d38..eb38443c0eb3dcd85439e1cd6001d8b81536c90c:/app/controllers/application.rb diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 918e4b617..ce13a6aa3 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base def authorize_web if session[:user] - @user = User.find(session[:user]) + @user = User.find(session[:user], :conditions => "visible = 1") elsif session[:token] @user = User.authenticate(:token => session[:token]) session[:user] = @user.id