diff --git a/muk_security/__manifest__.py b/muk_security/__manifest__.py index 599f326..fb9c924 100644 --- a/muk_security/__manifest__.py +++ b/muk_security/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Security", "summary": """Security Features""", - "version": "11.0.1.1.3", + "version": "11.0.1.1.4", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_security/models/access_groups.py b/muk_security/models/access_groups.py index 5365d30..df066ba 100644 --- a/muk_security/models/access_groups.py +++ b/muk_security/models/access_groups.py @@ -132,7 +132,8 @@ class BaseModelAccessGroups(models.AbstractModel): WHERE NOT EXISTS ( SELECT * 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.env.cr.execute(sql)