anonymous users are not logged in
parent
c72141b84e
commit
394bb364e8
|
@ -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
|
||||
|
|
Reference in New Issue