mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +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,
|
EditAssignedCollections,
|
||||||
DeleteAssignedCollections,
|
DeleteAssignedCollections,
|
||||||
ManageSso,
|
ManageSso,
|
||||||
|
ManageBilling,
|
||||||
}
|
}
|
||||||
|
@ -181,4 +181,12 @@ export class Organization {
|
|||||||
get isExemptFromPolicies() {
|
get isExemptFromPolicies() {
|
||||||
return this.canManagePolicies;
|
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