Fix Peg_content,Annoucement authorization bug

This commit is contained in:
Manson Wang committed 2013-11-12 19:09:29 +08:00
1 parent 3d091b692d
commit a1840c86de
2 files changed
+2 -1

No files matched your search

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