Updated Approvable to work for submanager role also

This commit is contained in:
saurabhbhatia committed 2013-11-13 10:35:03 +08:00
1 parent 182729a7fe
commit 635f82db2f
4 files changed
+4 -5

No files matched your search

-1
View File
@@ -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)