[FE] Roles and Permissions - check and disable permissions that base role already has
On the Roles and Permissions page, when creating a new role, the user must select a base role:
Custom permissions are additive only; the custom role can only grant permissions on top of the ones the base role already has, but cannot remove permissions from the base role. Currently, the UI does not check any of the permissions even if the base role already has that permission. This can be very misleading because it looks as if we're not granting the permission to the role, even though the role already has that permission:
2023-11-06_13-18-26 |
We should check and disable any role that the base role already has permissions for:
Edited by Daniel Tian