mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
attachments accessible if can access premium
This commit is contained in:
parent
977a5e868f
commit
7d7a9f3dc6
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 81c21418ec965221b4d322008f9da0ab7b9037d0
|
||||
Subproject commit 42dbdb0043842810fb084370f886bd2ea9406b9f
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user