mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +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(
|
map(
|
||||||
([organization, acknowledged, featureFlagEnabled]) =>
|
([organization, acknowledged, featureFlagEnabled]) =>
|
||||||
featureFlagEnabled &&
|
featureFlagEnabled &&
|
||||||
organization.isOwner &&
|
organization.canManageUsers &&
|
||||||
organization.productTierType === ProductTierType.Enterprise &&
|
organization.productTierType === ProductTierType.Enterprise &&
|
||||||
!acknowledged,
|
!acknowledged,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -594,7 +594,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!warningAcknowledged &&
|
!warningAcknowledged &&
|
||||||
this.organization.isOwner &&
|
this.organization.canManageUsers &&
|
||||||
this.organization.productTierType === ProductTierType.Enterprise
|
this.organization.productTierType === ProductTierType.Enterprise
|
||||||
) {
|
) {
|
||||||
const acknowledged = await this.deleteManagedMemberWarningService.showWarning();
|
const acknowledged = await this.deleteManagedMemberWarningService.showWarning();
|
||||||
@@ -800,7 +800,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!warningAcknowledged &&
|
!warningAcknowledged &&
|
||||||
this.organization.isOwner &&
|
this.organization.canManageUsers &&
|
||||||
this.organization.productTierType === ProductTierType.Enterprise
|
this.organization.productTierType === ProductTierType.Enterprise
|
||||||
) {
|
) {
|
||||||
const acknowledged = await this.deleteManagedMemberWarningService.showWarning();
|
const acknowledged = await this.deleteManagedMemberWarningService.showWarning();
|
||||||
|
|||||||
Reference in New Issue
Block a user