diff --git a/muk_security/__manifest__.py b/muk_security/__manifest__.py index 669bd38..2d2c553 100644 --- a/muk_security/__manifest__.py +++ b/muk_security/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Security", "summary": """Security Features""", - "version": "12.0.1.5.2", + "version": "12.0.1.5.3", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_security/models/mixins_access_groups.py b/muk_security/models/mixins_access_groups.py index eeb63eb..24b4cb3 100644 --- a/muk_security/models/mixins_access_groups.py +++ b/muk_security/models/mixins_access_groups.py @@ -216,7 +216,7 @@ class AccessGroupsModel(models.AbstractModel): ) self.env.cr.execute(sql_query, [self.env.user.id]) ids_with_access += list(map(lambda val: val[0], self.env.cr.fetchall())) - return self.browse(ids_with_access) + return self & self.browse(ids_with_access) #---------------------------------------------------------- # Create, Update, Delete