1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

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

Submodule jslib updated: 81c21418ec...42dbdb0043

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