mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 04:15:28 +02:00
fix(rbac): clean leftovers (#4265)
This commit is contained in:
parent
45cada05d5
commit
b4f97efb85
5 changed files with 14 additions and 55 deletions
|
@ -2,8 +2,6 @@ export function UserViewModel(data) {
|
|||
this.Id = data.Id;
|
||||
this.Username = data.Username;
|
||||
this.Role = data.Role;
|
||||
this.EndpointAuthorizations = data.EndpointAuthorizations;
|
||||
this.PortainerAuthorizations = data.PortainerAuthorizations;
|
||||
if (data.Role === 1) {
|
||||
this.RoleName = 'administrator';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue