use cipher id, not search id. resolves #55

This commit is contained in:
Kyle Spearrin 2019-02-19 09:19:52 -05:00
parent 7ed8287052
commit 290afc7ac2
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 93244b5c90b02ec7a333ffafe8b32a6026c1c7d3
Subproject commit 9c44fc1329b9595560462ffb7cd4d32bb0e22a68

View File

@ -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.');