settings: fix permission matrix to totally ignore internal roles (#38836)
This commit is contained in:
parent
cbebd7558f
commit
13b2f9ce54
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue