Browse Source

publish muk_security - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
b0840da195
  1. 2
      muk_security/models/mixins_access_groups.py

2
muk_security/models/mixins_access_groups.py

@ -181,7 +181,7 @@ class AccessGroupsModel(models.AbstractModel):
)
self.env.cr.execute(sql_query, [self.env.user.id])
result = self.env.cr.fetchall()
if len(result) < group_ids or any(list(map(lambda val: val[0], result))):
if len(result) < len(group_ids) or any(list(map(lambda val: val[0], result))):
raise AccessError(_(
'The requested operation cannot be completed due to security restrictions. '
'Please contact your system administrator.\n\n(Document type: %s, Operation: %s)'

Loading…
Cancel
Save