mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
admins owners and canManageUsers permissions can see the modal (#13302)
This commit is contained in:
@@ -649,7 +649,7 @@ export class MemberDialogComponent implements OnDestroy {
|
||||
map(
|
||||
([organization, acknowledged, featureFlagEnabled]) =>
|
||||
featureFlagEnabled &&
|
||||
organization.isOwner &&
|
||||
organization.canManageUsers &&
|
||||
organization.productTierType === ProductTierType.Enterprise &&
|
||||
!acknowledged,
|
||||
),
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user