Updated Approvable to work for submanager role also
This commit is contained in:
1 parent
182729a7fe
commit
635f82db2f
4 files changed
+4
-5
No files matched your search
@@ -196,7 +196,6 @@ 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
Block a user