diff options
author | brantje <brantje@gmail.com> | 2017-02-21 14:31:44 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-02-22 20:02:55 +0300 |
commit | 33d1a5db0144e95a79b81e502efeea06e05b6df9 (patch) | |
tree | ac9df1ca4ebb152b489b77a3026c74e51807cce3 /controller | |
parent | a84fbf58954f501920ff68315edaa53426c4c064 (diff) |
Small fixes
Diffstat (limited to 'controller')
-rw-r--r-- | controller/credentialcontroller.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/controller/credentialcontroller.php b/controller/credentialcontroller.php index 1989905e..8c8ee481 100644 --- a/controller/credentialcontroller.php +++ b/controller/credentialcontroller.php @@ -337,18 +337,12 @@ class CredentialController extends ApiController { * @NoAdminRequired * @NoCSRFRequired */ - public function updateRevision($credential_guid, $revision_id, $credential_data) { + public function updateRevision($revision_id, $credential_data) { $revision = null; try { - $this->credentialService->getCredentialByGUID($credential_guid, $this->userId); - } catch (\Exception $e) { - return new NotFoundJSONResponse(); - } - - try { $revision = $this->credentialRevisionService->getRevision($revision_id); } catch (\Exception $exception) { - return new NotFoundJSONResponse(); + return new JSONResponse(array()); } $revision->setCredentialData($credential_data); |