diff options
author | Marcos Zuriaga <wolfi@wolfi.es> | 2016-10-07 18:04:26 +0300 |
---|---|---|
committer | Marcos Zuriaga <wolfi@wolfi.es> | 2016-10-07 18:04:26 +0300 |
commit | 5a0f158137ce3a1d3a42a5c9a1093d27b485bccf (patch) | |
tree | d7ac2ba8f4471c8343a6877f5189da24236d6508 /controller | |
parent | 616a72990e2f59a0274f2bf45d4290691ade4f78 (diff) |
Return 404 if vault is not found
Diffstat (limited to 'controller')
-rw-r--r-- | controller/vaultcontroller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/vaultcontroller.php b/controller/vaultcontroller.php index 129bee40..9bb3f7f8 100644 --- a/controller/vaultcontroller.php +++ b/controller/vaultcontroller.php @@ -11,6 +11,7 @@ namespace OCA\Passman\Controller; +use OCA\Passman\Utility\NotFoundJSONResponse; use OCP\AppFramework\Db\DoesNotExistException; use OCP\IRequest; use OCP\AppFramework\Http\JSONResponse; @@ -78,7 +79,7 @@ class VaultController extends ApiController { try { $vault = $this->vaultService->getByGuid($vault_guid, $this->userId); } catch (DoesNotExistException $e) { - + return new NotFoundJSONResponse(); } $result = array(); if ($vault) { |