mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-15 10:35:20 +01:00
[PM-13783] Battle harden ProviderType enum expansion (#11920)
This commit is contained in:
parent
d0f24dc41f
commit
a4156799e9
@ -283,9 +283,7 @@ export class Organization {
|
||||
return true;
|
||||
}
|
||||
|
||||
return this.hasProvider && this.providerType === ProviderType.Msp
|
||||
? this.isProviderUser
|
||||
: this.isOwner;
|
||||
return this.hasBillableProvider ? this.isProviderUser : this.isOwner;
|
||||
}
|
||||
|
||||
get canEditSubscription() {
|
||||
@ -304,6 +302,14 @@ export class Organization {
|
||||
return this.providerId != null || this.providerName != null;
|
||||
}
|
||||
|
||||
get hasBillableProvider() {
|
||||
return (
|
||||
this.hasProvider &&
|
||||
(this.providerType === ProviderType.Msp ||
|
||||
this.providerType === ProviderType.MultiOrganizationEnterprise)
|
||||
);
|
||||
}
|
||||
|
||||
get hasReseller() {
|
||||
return this.hasProvider && this.providerType === ProviderType.Reseller;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user