From 7d7a9f3dc69322a93eb7fe51d29e82ed92c8c64a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 29 Aug 2018 09:22:28 -0400 Subject: [PATCH] attachments accessible if can access premium --- jslib | 2 +- src/app/vault/vault.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 81c21418ec..42dbdb0043 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 81c21418ec965221b4d322008f9da0ab7b9037d0 +Subproject commit 42dbdb0043842810fb084370f886bd2ea9406b9f diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index e9d1b9e923..56d4b55cb2 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -201,8 +201,8 @@ export class VaultComponent implements OnInit, OnDestroy { } async editCipherAttachments(cipher: CipherView) { - const premium = await this.tokenService.getPremium(); - if (cipher.organizationId == null && !premium) { + const canAccessPremium = await this.userService.canAccessPremium(); + if (cipher.organizationId == null && !canAccessPremium) { this.messagingService.send('premiumRequired'); return; } else if (cipher.organizationId != null) {