Browse Source

publish muk_security - 12.0

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

2
muk_security/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Security",
"summary": """Security Features""",
"version": "12.0.1.2.5",
"version": "12.0.1.2.6",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",

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) < len(group_ids) or any(list(map(lambda val: val[0], result))):
if len(result) < len(group_ids) or not 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