use cipher id, not search id. resolves #55
This commit is contained in:
parent
7ed8287052
commit
290afc7ac2
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit 93244b5c90b02ec7a333ffafe8b32a6026c1c7d3
|
Subproject commit 9c44fc1329b9595560462ffb7cd4d32bb0e22a68
|
|
@ -196,7 +196,7 @@ export class GetCommand {
|
||||||
|
|
||||||
const canAccessPremium = await this.userService.canAccessPremium();
|
const canAccessPremium = await this.userService.canAccessPremium();
|
||||||
if (!canAccessPremium) {
|
if (!canAccessPremium) {
|
||||||
const originalCipher = await this.cipherService.get(id);
|
const originalCipher = await this.cipherService.get(cipher.id);
|
||||||
if (originalCipher == null || originalCipher.organizationId == null ||
|
if (originalCipher == null || originalCipher.organizationId == null ||
|
||||||
!originalCipher.organizationUseTotp) {
|
!originalCipher.organizationUseTotp) {
|
||||||
return Response.error('Premium status is required to use this feature.');
|
return Response.error('Premium status is required to use this feature.');
|
||||||
|
|
Loading…
Reference in New Issue