mirror of
https://github.com/bitwarden/web
synced 2025-12-16 00:03:25 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55ba78c66a | ||
|
|
b0364041e2 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bitwarden-web",
|
"name": "bitwarden-web",
|
||||||
"version": "2.7.0",
|
"version": "2.7.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bitwarden-web",
|
"name": "bitwarden-web",
|
||||||
"version": "2.7.0",
|
"version": "2.7.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"sub:init": "git submodule update --init --recursive",
|
"sub:init": "git submodule update --init --recursive",
|
||||||
"sub:update": "git submodule update --remote",
|
"sub:update": "git submodule update --remote",
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ export class ToolsComponent {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.route.parent.params.subscribe(async (params) => {
|
this.route.parent.params.subscribe(async (params) => {
|
||||||
this.organization = await this.userService.getOrganization(params.organizationId);
|
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
|
// 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 use2fa
|
// since all paid plans include useTotp
|
||||||
this.accessReports = this.organization.use2fa;
|
this.accessReports = this.organization.useTotp;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ export class CipherReportComponent {
|
|||||||
|
|
||||||
protected async checkAccess(): Promise<boolean> {
|
protected async checkAccess(): Promise<boolean> {
|
||||||
if (this.organization != null) {
|
if (this.organization != null) {
|
||||||
// TODO: Maybe we want to just make sure they are not on a free plan? Just compare use2fa for now
|
// 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 use2fa
|
// since all paid plans include useTotp
|
||||||
if (this.requiresPaid && !this.organization.use2fa) {
|
if (this.requiresPaid && !this.organization.useTotp) {
|
||||||
this.messagingService.send('upgradeOrganization', { organizationId: this.organization.id });
|
this.messagingService.send('upgradeOrganization', { organizationId: this.organization.id });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user