Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-02-21 14:31:44 +0300
committerbrantje <brantje@gmail.com>2017-02-22 20:02:55 +0300
commit33d1a5db0144e95a79b81e502efeea06e05b6df9 (patch)
treeac9df1ca4ebb152b489b77a3026c74e51807cce3 /controller
parenta84fbf58954f501920ff68315edaa53426c4c064 (diff)
Small fixes
Diffstat (limited to 'controller')
-rw-r--r--controller/credentialcontroller.php10
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);