From 394bb364e874927c4e28621f88479088239374c0 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 4 Dec 2008 22:47:20 -0600 Subject: [PATCH] anonymous users are not logged in --- app/controllers/users.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users.rb b/app/controllers/users.rb index fd251fd..ac15242 100644 --- a/app/controllers/users.rb +++ b/app/controllers/users.rb @@ -5,7 +5,7 @@ class Users < Application include Ambethia::ReCaptcha::Controller def index - if current_user.administrator? + if logged_in? and current_user.administrator? @users = User.find :all, :order => 'user_name ASC', :conditions => 'facebook_id IS NULL' render else