[Sharing 2.0] General exceptions return 403

This is the same as the old behaviour
This commit is contained in:
Roeland Jago Douma 2016-01-05 11:00:09 +01:00
parent 114f6115c3
commit 0ab227310f
1 changed files with 1 additions and 1 deletions

View 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);