Return 200 instead of 404 when asking for collections of a resource
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5de3a0feaa
commit
21425eb964
1 changed files with 1 additions and 1 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Reference in a new issue