]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application.rb
Covering the case of an entry not being found. More diary entry tests.
[rails.git] / app / controllers / application.rb
index 68359585e0eeb60d64c498a64b965af5791e87f4..579c50e95a725217070beb7532d2880899636c5d 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 => true})
     elsif session[:token]
       @user = User.authenticate(:token => session[:token])
       session[:user] = @user.id