Access control: hide team role picker if user doesn't have access to it (#45068)

* hide team role column

* hide or disable the role picker as needed

* add SWL filtering for role listing
This commit is contained in:
Ieva
2022-02-08 16:38:13 +00:00
committed by GitHub
parent 4e38ac9cf7
commit 4f4b1cb5ea
3 changed files with 21 additions and 3 deletions

View File

@@ -60,6 +60,9 @@ export enum AccessControlAction {
ActionRolesList = 'roles:list',
ActionBuiltinRolesList = 'roles.builtin:list',
ActionTeamsRolesList = 'teams.roles:list',
ActionTeamsRolesAdd = 'teams.roles:add',
ActionTeamsRolesRemove = 'teams.roles:remove',
ActionUserRolesList = 'users.roles:list',
}