diff options
author | Joas Schilling <coding@schilljs.com> | 2019-03-18 15:13:24 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-19 13:13:53 +0100 |
commit | 21425eb964833f1461ee0bbe678d746e7e24954d (patch) | |
tree | 4aabc73ee75225d1aa74872b9f72df0ffc4f8818 /core/Controller/CollaborationResourcesController.php | |
parent | 5de3a0feaa96c551082453163f4837eb2f8033bb (diff) | |
download | nextcloud-server-21425eb964833f1461ee0bbe678d746e7e24954d.tar.gz nextcloud-server-21425eb964833f1461ee0bbe678d746e7e24954d.zip |
Return 200 instead of 404 when asking for collections of a resource
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller/CollaborationResourcesController.php')
-rw-r--r-- | core/Controller/CollaborationResourcesController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php index 0697444555c..e67a59bb36c 100644 --- a/core/Controller/CollaborationResourcesController.php +++ b/core/Controller/CollaborationResourcesController.php @@ -166,7 +166,7 @@ class CollaborationResourcesController extends OCSController { try { $resource = $this->manager->getResourceForUser($resourceType, $resourceId, $this->userSession->getUser()); } catch (ResourceException $e) { - return new DataResponse([], Http::STATUS_NOT_FOUND); + $resource = $this->manager->createResource($resourceType, $resourceId); } if (!$resource->canAccess($this->userSession->getUser())) { |