Browse Source

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

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

3
auth_dynamic_groups/model/res_groups.py

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