1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

allow attachments if can access premium

This commit is contained in:
Kyle Spearrin
2018-08-29 09:21:27 -04:00
parent 81c21418ec
commit 42dbdb0043
2 changed files with 5 additions and 8 deletions

View File

@@ -38,7 +38,6 @@ export class ViewComponent implements OnDestroy, OnInit {
cipher: CipherView;
showPassword: boolean;
showCardCode: boolean;
isPremium: boolean;
canAccessPremium: boolean;
totpCode: string;
totpCodeFormatted: string;
@@ -83,8 +82,6 @@ export class ViewComponent implements OnDestroy, OnInit {
const cipher = await this.cipherService.get(this.cipherId);
this.cipher = await cipher.decrypt();
this.isPremium = this.tokenService.getPremium();
this.canAccessPremium = await this.userService.canAccessPremium();
if (this.cipher.type === CipherType.Login && this.cipher.login.totp &&
@@ -161,7 +158,7 @@ export class ViewComponent implements OnDestroy, OnInit {
return;
}
if (this.cipher.organizationId == null && !this.isPremium) {
if (this.cipher.organizationId == null && !this.canAccessPremium) {
this.toasterService.popAsync('error', this.i18nService.t('premiumRequired'),
this.i18nService.t('premiumRequiredDesc'));
return;