From ffa2978f56eb4f52bdd096235c1de35498dc8d79 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Sun, 30 Dec 2018 23:55:26 +0000 Subject: [PATCH] publish muk_security - 12.0 --- muk_security/models/mixins_access_groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muk_security/models/mixins_access_groups.py b/muk_security/models/mixins_access_groups.py index 5d02030..e7b360a 100644 --- a/muk_security/models/mixins_access_groups.py +++ b/muk_security/models/mixins_access_groups.py @@ -133,8 +133,8 @@ class AccessGroupsModel(models.AbstractModel): subset = self.ids and 'AND r.aid = ANY (VALUES {ids})'.format( ids=', '.join(map(lambda id: '(%s)' % id, self.ids)) ) - groups_mode = self._access_groups_mode and 'AND g.perm_{mode} = true'.format( - mode=mode + groups_mode = self._access_groups_mode and 'AND g.perm_{operation} = true'.format( + operation=operation ) sql_query = sql_query.format( table=self._table,