Skip to content
Snippets Groups Projects
Unverified Commit 555afff0 authored by Julius Härtl's avatar Julius Härtl
Browse files

Make sure we query the node before fetching the name


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 7843b8b1
No related branches found
No related tags found
No related merge requests found
......@@ -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(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment