From 0ab227310f3519dc2805b80518ad91923bc4dc1f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 5 Jan 2016 11:00:09 +0100 Subject: [PATCH] [Sharing 2.0] General exceptions return 403 This is the same as the old behaviour --- apps/files_sharing/api/share20ocs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index bf644ce00f6..8bab8a871e3 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -304,7 +304,7 @@ class Share20OCS { try { $share = $this->shareManager->createShare($share); } catch (\Exception $e) { - return new \OC_OCS_Result(null, 404, $e->getMessage()); + return new \OC_OCS_Result(null, 403, $e->getMessage()); } $share = $this->formatShare($share); -- 2.39.5