mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
hasEncKey checks
This commit is contained in:
@@ -40,8 +40,7 @@ export class AttachmentsComponent implements OnInit {
|
||||
this.cipherDomain = await this.loadCipher();
|
||||
this.cipher = await this.cipherDomain.decrypt();
|
||||
|
||||
const key = await this.cryptoService.getEncKey();
|
||||
this.hasUpdatedKey = key != null;
|
||||
this.hasUpdatedKey = await this.cryptoService.hasEncKey();
|
||||
const isPremium = this.tokenService.getPremium();
|
||||
this.canAccessAttachments = isPremium || this.cipher.organizationId != null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user