Added back auth object
This commit is contained in:
parent
7a0961e527
commit
3c6965a603
|
@ -196,6 +196,7 @@ class ModuleApp
|
|||
|
||||
def update_auth_sub_manager_users
|
||||
user_ids = self.auth_sub_managers.inject([]) do |users, auth|
|
||||
auth = auth.class.find(auth.id)
|
||||
users += auth.authorized_users.map{|user| user.id}
|
||||
end
|
||||
self.update_attribute(:auth_sub_manager_users, user_ids.uniq)
|
||||
|
|
Reference in New Issue