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/ 2015-08-26 07:01:22 -05:00
commit 805bcbaed2
1 changed files with 1 additions and 1 deletions

View File

@ -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,