Browse Source

Merge pull request #236 from hbrunn/8.0-auth_dynamic_groups-fix_constraint

[FIX] don't error out on empty group condition
pull/237/head
Moises Lopez - https://www.vauxoo.com/ 9 years ago
parent
commit
805bcbaed2
  1. 2
      auth_dynamic_groups/model/res_groups.py

2
auth_dynamic_groups/model/res_groups.py

@ -37,7 +37,7 @@ class res_groups(models.Model):
result = all(
self.mapped(
lambda this: safe_eval(
this.dynamic_group_condition,
this.dynamic_group_condition or 'False',
{
'user': self.env.user,
'any': any,

Loading…
Cancel
Save