Browse Source

publish muk_security - 11.0

pull/6/head
MuK IT GmbH 6 years ago
parent
commit
807bf14380
  1. 2
      muk_security/__manifest__.py
  2. 3
      muk_security/models/access_groups.py

2
muk_security/__manifest__.py

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

3
muk_security/models/access_groups.py

@ -132,7 +132,8 @@ class BaseModelAccessGroups(models.AbstractModel):
WHERE NOT EXISTS ( WHERE NOT EXISTS (
SELECT * SELECT *
FROM muk_groups_complete_%s_rel r FROM muk_groups_complete_%s_rel r
WHERE r.aid = a.id AND perm_%s = true
JOIN muk_security_groups g ON r.gid = g.id
WHERE r.aid = a.id AND g.perm_%s = true
); );
''' % (self._table, model, operation) ''' % (self._table, model, operation)
self.env.cr.execute(sql) self.env.cr.execute(sql)

Loading…
Cancel
Save