mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
attachments accessible if can access premium
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 81c21418ec...42dbdb0043
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user