attachments accessible if can access premium

This commit is contained in:
Kyle Spearrin 2018-08-29 09:22:28 -04:00
parent 977a5e868f
commit 7d7a9f3dc6
2 changed files with 3 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 81c21418ec965221b4d322008f9da0ab7b9037d0
Subproject commit 42dbdb0043842810fb084370f886bd2ea9406b9f

View File

@ -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) {