1
0
mirror of https://github.com/bitwarden/web synced 2026-01-09 03:53:28 +00:00

[EC-151] Hide Subscription/Billing information for Provider-managed organizations (#1614)

This commit is contained in:
Thomas Rittson
2022-05-10 17:41:52 +10:00
committed by GitHub
parent f8a2fae82b
commit 2c609fc6fd
12 changed files with 72 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.se
})
export class SettingsComponent {
access2fa = false;
selfHosted: boolean;
showBilling: boolean;
constructor(
private route: ActivatedRoute,
@@ -20,8 +20,8 @@ export class SettingsComponent {
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
this.selfHosted = await this.platformUtilsService.isSelfHost();
const organization = await this.organizationService.get(params.organizationId);
this.showBilling = !this.platformUtilsService.isSelfHost() && organization.canManageBilling;
this.access2fa = organization.use2fa;
});
}