Also check the access to collections on preparing
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
43c8d0c9c2
commit
eecd9323c5
|
@ -225,6 +225,10 @@ class CollaborationResourcesController extends OCSController {
|
|||
}
|
||||
|
||||
protected function prepareCollection(ICollection $collection): array {
|
||||
if (!$collection->canAccess($this->userSession->getUser())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return [
|
||||
'id' => $collection->getId(),
|
||||
'name' => $collection->getName(),
|
||||
|
|
Loading…
Reference in New Issue