From 0bc63517bdda7187fd57a5fbcd0d31f5dfbb7a44 Mon Sep 17 00:00:00 2001 From: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:25:15 -0500 Subject: [PATCH] If user can't view subscription, don't show upgrade modal (#12248) --- .../admin-console/organizations/members/members.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web/src/app/admin-console/organizations/members/members.component.ts b/apps/web/src/app/admin-console/organizations/members/members.component.ts index b33807c66c..26e27e1249 100644 --- a/apps/web/src/app/admin-console/organizations/members/members.component.ts +++ b/apps/web/src/app/admin-console/organizations/members/members.component.ts @@ -487,6 +487,11 @@ export class MembersComponent extends BaseMembersComponent this.organization.productTierType === ProductTierType.TeamsStarter || this.organization.productTierType === ProductTierType.Families) ) { + if (!this.organization.canEditSubscription) { + await this.showSeatLimitReachedDialog(); + return; + } + const reference = openChangePlanDialog(this.dialogService, { data: { organizationId: this.organization.id,