1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-16 20:33:55 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,