Browse Source

[FIX] when evaluating the dynamic group, sudo to the user

pull/172/head
Holger Brunn 10 years ago
parent
commit
4cb0d66548
  1. 3
      auth_dynamic_groups/model/res_groups.py

3
auth_dynamic_groups/model/res_groups.py

@ -59,4 +59,5 @@ class res_groups(models.Model):
def action_evaluate(self):
res_users = self.env['res.users']
for user in res_users.search([]):
res_users.update_dynamic_groups(user.id, self.env.cr.dbname)
res_users.sudo(user=user.id).update_dynamic_groups(
user.id, self.env.cr.dbname)
Loading…
Cancel
Save