Added back auth object

This commit is contained in:
saurabhbhatia 2013-11-26 10:02:45 +08:00
parent 7a0961e527
commit 3c6965a603
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ class ModuleApp
def update_auth_sub_manager_users def update_auth_sub_manager_users
user_ids = self.auth_sub_managers.inject([]) do |users, auth| user_ids = self.auth_sub_managers.inject([]) do |users, auth|
auth = auth.class.find(auth.id)
users += auth.authorized_users.map{|user| user.id} users += auth.authorized_users.map{|user| user.id}
end end
self.update_attribute(:auth_sub_manager_users, user_ids.uniq) self.update_attribute(:auth_sub_manager_users, user_ids.uniq)