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 {
|
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(),
|
||||||
|
|
Loading…
Reference in New Issue