mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01:00
[EC-151] Hide Subscription/Billing information for Provider-managed organizations (#777)
* add canManageBilling permission and hasProvider helper method
This commit is contained in:
parent
80c834b52a
commit
52321c51cc
@ -24,4 +24,5 @@ export enum Permissions {
|
||||
EditAssignedCollections,
|
||||
DeleteAssignedCollections,
|
||||
ManageSso,
|
||||
ManageBilling,
|
||||
}
|
||||
|
@ -181,4 +181,12 @@ export class Organization {
|
||||
get isExemptFromPolicies() {
|
||||
return this.canManagePolicies;
|
||||
}
|
||||
|
||||
get canManageBilling() {
|
||||
return this.isOwner && (this.isProviderUser || !this.hasProvider);
|
||||
}
|
||||
|
||||
get hasProvider() {
|
||||
return this.providerId != null || this.providerName != null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user