mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-18 06:47:14 +08:00
Return 404 if vault is not found
This commit is contained in:
parent
616a72990e
commit
5a0f158137
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue