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
|
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)
|
||||||
|
|
Reference in New Issue