diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-05 11:00:09 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-06 14:53:43 +0100 |
commit | 0ab227310f3519dc2805b80518ad91923bc4dc1f (patch) | |
tree | 1275cf69205929d8e728d33a6a6cabcc58c9b618 /apps/files_sharing/api/share20ocs.php | |
parent | 114f6115c33a12bef5f1a1a38cd1760d5a86646d (diff) | |
download | nextcloud-server-0ab227310f3519dc2805b80518ad91923bc4dc1f.tar.gz nextcloud-server-0ab227310f3519dc2805b80518ad91923bc4dc1f.zip |
[Sharing 2.0] General exceptions return 403
This is the same as the old behaviour
Diffstat (limited to 'apps/files_sharing/api/share20ocs.php')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |