]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application.rb
Fix syntax of status only renders. Closes #1345.
[rails.git] / app / controllers / application.rb
index 918e4b617822610bcd33c23ae5c48660af7e8b08..ce13a6aa3a6ae625407d3ac7fe2eaa11f7ab6ed9 100644 (file)
@@ -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