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) {
|
async editCipherAttachments(cipher: CipherView) {
|
||||||
const premium = await this.tokenService.getPremium();
|
const canAccessPremium = await this.userService.canAccessPremium();
|
||||||
if (cipher.organizationId == null && !premium) {
|
if (cipher.organizationId == null && !canAccessPremium) {
|
||||||
this.messagingService.send('premiumRequired');
|
this.messagingService.send('premiumRequired');
|
||||||
return;
|
return;
|
||||||
} else if (cipher.organizationId != null) {
|
} else if (cipher.organizationId != null) {
|
||||||
|
|
Loading…
Reference in New Issue