Adjust parameter names on createCollectionOnResource

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-01-22 13:11:49 +01:00
parent 322f7c3c85
commit a72a6d73a3
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 2 deletions

View File

@ -168,13 +168,13 @@ class CollaborationResourcesController extends OCSController {
* @param string $name
* @return DataResponse
*/
public function createCollectionOnResource(string $resourceType, string $resourceId, string $name): DataResponse {
public function createCollectionOnResource(string $baseResourceType, string $baseResourceId, string $name): DataResponse {
if (!isset($name[0]) || isset($name[64])) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
}
try {
$resource = $this->manager->getResource($resourceType, $resourceId);
$resource = $this->manager->getResource($baseResourceType, $baseResourceId);
} catch (CollectionException $e) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}