1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

[PM-12758] Add managed status to OrganizationUserDetailsResponse, OrganizationUserUserDetailsResponse, OrganizationUserView and OrganizationUserAdminView (#11640)

* Add managedByOrganization property to OrganizationUserUserDetailsResponse and OrganizationUserView

* Add managedByOrganization property to OrganizationUserDetailsResponse and OrganizationUserAdminView

* Move response mapping from UserAdminService to method in OrganizationUserAdminView
This commit is contained in:
Rui Tomé
2024-10-24 15:39:41 +01:00
committed by GitHub
parent 15c301d39f
commit 548abfe906
4 changed files with 41 additions and 41 deletions

View File

@@ -49,6 +49,7 @@ export class OrganizationUserUserDetailsResponse extends OrganizationUserRespons
avatarColor: string;
twoFactorEnabled: boolean;
usesKeyConnector: boolean;
managedByOrganization: boolean;
constructor(response: any) {
super(response);
@@ -57,12 +58,16 @@ export class OrganizationUserUserDetailsResponse extends OrganizationUserRespons
this.avatarColor = this.getResponseProperty("AvatarColor");
this.twoFactorEnabled = this.getResponseProperty("TwoFactorEnabled");
this.usesKeyConnector = this.getResponseProperty("UsesKeyConnector") ?? false;
this.managedByOrganization = this.getResponseProperty("ManagedByOrganization") ?? false;
}
}
export class OrganizationUserDetailsResponse extends OrganizationUserResponse {
managedByOrganization: boolean;
constructor(response: any) {
super(response);
this.managedByOrganization = this.getResponseProperty("ManagedByOrganization") ?? false;
}
}