diff --git a/src/app/organizations/tools/tools.component.ts b/src/app/organizations/tools/tools.component.ts index 97a9d12068..4df7d2523b 100644 --- a/src/app/organizations/tools/tools.component.ts +++ b/src/app/organizations/tools/tools.component.ts @@ -20,9 +20,9 @@ export class ToolsComponent { ngOnInit() { this.route.parent.params.subscribe(async (params) => { this.organization = await this.userService.getOrganization(params.organizationId); - // TODO: Maybe we want to just make sure they are not on a free plan? Just compare use2fa for now - // since all paid plans include use2fa - this.accessReports = this.organization.use2fa; + // TODO: Maybe we want to just make sure they are not on a free plan? Just compare useTotp for now + // since all paid plans include useTotp + this.accessReports = this.organization.useTotp; }); } diff --git a/src/app/tools/cipher-report.component.ts b/src/app/tools/cipher-report.component.ts index ad8010f659..ee331594c5 100644 --- a/src/app/tools/cipher-report.component.ts +++ b/src/app/tools/cipher-report.component.ts @@ -72,9 +72,9 @@ export class CipherReportComponent { protected async checkAccess(): Promise { if (this.organization != null) { - // TODO: Maybe we want to just make sure they are not on a free plan? Just compare use2fa for now - // since all paid plans include use2fa - if (this.requiresPaid && !this.organization.use2fa) { + // TODO: Maybe we want to just make sure they are not on a free plan? Just compare useTotp for now + // since all paid plans include useTotp + if (this.requiresPaid && !this.organization.useTotp) { this.messagingService.send('upgradeOrganization', { organizationId: this.organization.id }); return false; }