Project

General

Profile

0001-settings-fix-permission-matrix-to-totally-ignore-int.patch

Frédéric Péters, 11 Jan 2020 09:49 AM

Download (1001 Bytes)

View differences:

Subject: [PATCH] settings: fix permission matrix to totally ignore internal
 roles (#38836)

 wcs/admin/settings.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
wcs/admin/settings.py
565 565

  
566 566
        rows = []
567 567
        value = []
568
        roles = list(Role.select(order_by='name'))
568
        roles = [x for x in Role.select(order_by='name') if not role.is_internal()]
569 569
        for role in roles:
570
            if role.is_internal():
571
                continue
572 570
            rows.append(role.name)
573 571
            value.append([role.allows_backoffice_access])
574 572
            for k in permission_keys:
575
-