1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

[SM-889] FIX - bulk activate SM members (#8375)

* fix: add accessSecretsManager property and filter checked users, refs SM-889

* fix: load members list on bulk sm complete, refs SM-889
This commit is contained in:
Vincent Salucci 2024-04-02 14:58:54 -05:00 committed by GitHub
parent 7df3304a25
commit 2f3e37d713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -26,6 +26,10 @@ export class OrganizationUserView {
twoFactorEnabled: boolean; twoFactorEnabled: boolean;
usesKeyConnector: boolean; usesKeyConnector: boolean;
hasMasterPassword: boolean; hasMasterPassword: boolean;
/**
* True if this organizaztion user has been granted access to Secrets Manager, false otherwise.
*/
accessSecretsManager: boolean;
collections: CollectionAccessSelectionView[] = []; collections: CollectionAccessSelectionView[] = [];
groups: string[] = []; groups: string[] = [];

View File

@ -571,7 +571,8 @@ export class PeopleComponent
} }
async bulkEnableSM() { async bulkEnableSM() {
const users = this.getCheckedUsers(); const users = this.getCheckedUsers().filter((ou) => !ou.accessSecretsManager);
if (users.length === 0) { if (users.length === 0) {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
@ -588,6 +589,7 @@ export class PeopleComponent
await lastValueFrom(dialogRef.closed); await lastValueFrom(dialogRef.closed);
this.selectAll(false); this.selectAll(false);
await this.load();
} }
async events(user: OrganizationUserView) { async events(user: OrganizationUserView) {