1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

admins owners and canManageUsers permissions can see the modal (#13302)

This commit is contained in:
Brandon Treston
2025-02-07 09:55:44 -05:00
committed by GitHub
parent ab243fc88e
commit a42d5306d7
2 changed files with 3 additions and 3 deletions

View File

@@ -649,7 +649,7 @@ export class MemberDialogComponent implements OnDestroy {
map(
([organization, acknowledged, featureFlagEnabled]) =>
featureFlagEnabled &&
organization.isOwner &&
organization.canManageUsers &&
organization.productTierType === ProductTierType.Enterprise &&
!acknowledged,
),

View File

@@ -594,7 +594,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
if (
!warningAcknowledged &&
this.organization.isOwner &&
this.organization.canManageUsers &&
this.organization.productTierType === ProductTierType.Enterprise
) {
const acknowledged = await this.deleteManagedMemberWarningService.showWarning();
@@ -800,7 +800,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
if (
!warningAcknowledged &&
this.organization.isOwner &&
this.organization.canManageUsers &&
this.organization.productTierType === ProductTierType.Enterprise
) {
const acknowledged = await this.deleteManagedMemberWarningService.showWarning();