Show disabled RBAC roles when not available
If the instance or workspace is not on the free plan, we show only show the allowed Admin
and Member
roles in the dropdown when inviting a user or when changing their role. To increase awareness of the advanced/enterprise roles (Admin
, Builder
, Editor
, Viewer
, Commenter
and Free
), it would be really nice to show those roles grayed out with a lock next to it.
- Show the advanced/enterprise roles grayed + lock icon out if isn't the user isn't on one of these plans.
- Must be in the roles dropdown when inviting a user.
- Must be in the context when changing the role of a user.
- If the user clicks on a grayed out link, it should open the upgrade modal.
- If the user is on the plans, there is no need to show the free roles anymore.
- In the database and table context, the "Manage members" must also be grayed out with a lock if the user isn't on the advanced enterprise plan.
- The code must be placed in the enterprise folder. If a user removed the enterprise and premium plugins, there should be no reference of these roles.
Edited by Bram Wiepjes