[Sharing 2.0] General exceptions return 403
This is the same as the old behaviour
This commit is contained in:
parent
114f6115c3
commit
0ab227310f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue