diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/CollaborationResourcesController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php index a5a40145fb7..565e0ba4739 100644 --- a/core/Controller/CollaborationResourcesController.php +++ b/core/Controller/CollaborationResourcesController.php @@ -197,15 +197,16 @@ class CollaborationResourcesController extends OCSController { ]; } - protected function prepareResources(IResource $resource): array { + protected function prepareResources(IResource $resource): ?array { if (!$resource->canAccess($this->userSession->getUser())) { - return []; + return null; } return [ 'type' => $resource->getType(), 'id' => $resource->getId(), 'name' => $resource->getName(), + 'iconClass' => $resource->getIconClass() ]; } } |