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