Skip to content
Snippets Groups Projects
Unverified Commit eecd9323 authored by Joas Schilling's avatar Joas Schilling Committed by Julius Härtl
Browse files

Also check the access to collections on preparing

parent 43c8d0c9
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,10 @@ class CollaborationResourcesController extends OCSController { ...@@ -225,6 +225,10 @@ class CollaborationResourcesController extends OCSController {
} }
protected function prepareCollection(ICollection $collection): array { protected function prepareCollection(ICollection $collection): array {
if (!$collection->canAccess($this->userSession->getUser())) {
return null;
}
return [ return [
'id' => $collection->getId(), 'id' => $collection->getId(),
'name' => $collection->getName(), 'name' => $collection->getName(),
......
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