]> source.dussan.org Git - nextcloud-server.git/commitdiff
[Sharing 2.0] General exceptions return 403
authorRoeland Jago Douma <rullzer@owncloud.com>
Tue, 5 Jan 2016 10:00:09 +0000 (11:00 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Wed, 6 Jan 2016 13:53:43 +0000 (14:53 +0100)
This is the same as the old behaviour

apps/files_sharing/api/share20ocs.php

index bf644ce00f6613409e3882ea76a553e17fe4fd82..8bab8a871e3307d57ff289ea71107d596d3e59b8 100644 (file)
@@ -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);