settings: fix permission matrix to totally ignore internal roles (#38836)

This commit is contained in:
Frédéric Péters 2020-01-11 09:49:10 +01:00
parent cbebd7558f
commit 13b2f9ce54
1 changed files with 1 additions and 3 deletions

View File

@ -565,10 +565,8 @@ class SettingsDirectory(QommonSettingsDirectory):
rows = []
value = []
roles = list(Role.select(order_by='name'))
roles = [x for x in Role.select(order_by='name') if not role.is_internal()]
for role in roles:
if role.is_internal():
continue
rows.append(role.name)
value.append([role.allows_backoffice_access])
for k in permission_keys: