Add base role information to the `memberRoleAbilitiesList` GraphQL query
In the custom role UI, we would like to disable or hide permissions that are not relevant for the chosen base role.
For example:
-
read_codeonly applies toGuestbase role. Other base roles already include this ability. -
read_vulnerabilityapplies toGuestandDeveloper, but not forMaintainerorOwner. -
admin_vulnerabilityapplies toGuest,DeveloperandMaintainer, but not toOwner.
I propose an additional availableForBaseAccessLevel (or similar name) property in the response of memberRoleAbilitiesList GraphQL query.
The availableForBaseAccessLevel could be either a single number, like 30, which would mean that the permission can be applied to Maintainer and other lower access levels (Guest and Developer). Or the availableForBaseAccessLevel could be an array of access level, [ 10, 20, 30], enumerating specifically all the base roles that can be applied to that permission.
Edited by Eduardo Sanz García