Make sure we query the node before fetching the name
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7843b8b1fa
commit
555afff015
|
@ -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…
Reference in New Issue