1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

[PM-4395] Block reseller org invites if they outnumber available seats (#6698)

* Add Toast when reseller org invites over seat limit

* Set validation error when reseller org invited members outnumber seats

* Thomas' feedback
This commit is contained in:
Alex Morask
2023-11-20 10:10:47 -05:00
committed by GitHub
parent 1dbff31d20
commit 6f9c6d07af
4 changed files with 33 additions and 0 deletions

View File

@@ -258,6 +258,10 @@ export class Organization {
return this.providerId != null || this.providerName != null;
}
get hasReseller() {
return this.hasProvider && this.providerType === ProviderType.Reseller;
}
get canAccessSecretsManager() {
return this.useSecretsManager && this.accessSecretsManager;
}