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

This reverts commit 4cb0d66548.
pull/172/head
Holger Brunn 2015-06-04 16:41:05 +02:00
parent 4cb0d66548
commit 03b399bddc
1 changed files with 1 additions and 2 deletions

View File

@ -59,5 +59,4 @@ class res_groups(models.Model):
def action_evaluate(self):
res_users = self.env['res.users']
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)