do not show facebook users
parent
76bb0471f1
commit
e3c6cf9888
|
@ -6,7 +6,7 @@ class Users < Application
|
||||||
|
|
||||||
def index
|
def index
|
||||||
if current_user.administrator?
|
if current_user.administrator?
|
||||||
@users = User.find :all, :order => 'user_name ASC'
|
@users = User.find :all, :order => 'user_name ASC', :conditions => 'facebok_id IS NULL'
|
||||||
render
|
render
|
||||||
else
|
else
|
||||||
redirect url(:user, :id => current_user.user_name)
|
redirect url(:user, :id => current_user.user_name)
|
||||||
|
|
Reference in New Issue