diff --git a/app/models/module_app.rb b/app/models/module_app.rb index 006b8404..8218731b 100644 --- a/app/models/module_app.rb +++ b/app/models/module_app.rb @@ -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)