Access control: fetch role options only if user has permissions (#44201)

* Access control: fetch role options only if user has permissions

* Fix org/users page
This commit is contained in:
Alexander Zobnin
2022-01-19 16:15:52 +03:00
committed by GitHub
parent 46280848d8
commit dc913f2311
4 changed files with 45 additions and 14 deletions

View File

@@ -50,6 +50,10 @@ export enum AccessControlAction {
ActionServerStatsRead = 'server.stats:read',
ActionTeamsCreate = 'teams:create',
ActionRolesList = 'roles:list',
ActionBuiltinRolesList = 'roles.builtin:list',
ActionUserRolesList = 'users.roles:list',
}
export interface Role {