Exp with object_auth

This commit is contained in:
Matthew Kaito Juyuan Fu authored and Christophe Vilayphiou committed 2012-02-29 18:50:23 +08:00
1 parent 6b2aeadde6
commit 3bcd7ea349
17 files changed
+161 -10

No files matched your search

+3 -3
View File
@@ -68,7 +68,7 @@ class PrototypeAuth
end
end
def auth_users
def auth_users_before_block_list
if self.all?
User.all.entries
else
@@ -83,8 +83,8 @@ class PrototypeAuth
end
end
def auth_users_after_block_list
auth_users - self.blocked_users
def auth_users
auth_users_before_block_list - self.blocked_users
end
# protected