From 290afc7ac2071ceadc7d5ca896e7a43064fca512 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 19 Feb 2019 09:19:52 -0500 Subject: [PATCH] use cipher id, not search id. resolves #55 --- jslib | 2 +- src/commands/get.command.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 93244b5c90..9c44fc1329 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 93244b5c90b02ec7a333ffafe8b32a6026c1c7d3 +Subproject commit 9c44fc1329b9595560462ffb7cd4d32bb0e22a68 diff --git a/src/commands/get.command.ts b/src/commands/get.command.ts index 18ead1ba85..c34b955324 100644 --- a/src/commands/get.command.ts +++ b/src/commands/get.command.ts @@ -196,7 +196,7 @@ export class GetCommand { const canAccessPremium = await this.userService.canAccessPremium(); if (!canAccessPremium) { - const originalCipher = await this.cipherService.get(id); + const originalCipher = await this.cipherService.get(cipher.id); if (originalCipher == null || originalCipher.organizationId == null || !originalCipher.organizationUseTotp) { return Response.error('Premium status is required to use this feature.');