1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

If user can't view subscription, don't show upgrade modal (#12248)

This commit is contained in:
Conner Turnbull
2024-12-04 12:25:15 -05:00
committed by GitHub
parent 45db17627e
commit 0bc63517bd

View File

@@ -487,6 +487,11 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
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,