Browse Source

publish muk_security - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
ffa2978f56
  1. 4
      muk_security/models/mixins_access_groups.py

4
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( subset = self.ids and 'AND r.aid = ANY (VALUES {ids})'.format(
ids=', '.join(map(lambda id: '(%s)' % id, self.ids)) 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( sql_query = sql_query.format(
table=self._table, table=self._table,

Loading…
Cancel
Save