Make sure we query the node before fetching the name

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/11871/head
Julius Härtl 7 years ago
parent 7843b8b1fa
commit 555afff015
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 4
      core/Controller/CollaborationResourcesController.php

@ -198,6 +198,10 @@ class CollaborationResourcesController extends OCSController {
}
protected function prepareResources(IResource $resource): array {
if (!$resource->canAccess($this->userSession->getUser())) {
return [];
}
return [
'type' => $resource->getType(),
'id' => $resource->getId(),

Loading…
Cancel
Save