Update UserAddedToGroupListener.php

Signed-off-by: Guillaume COLSON <guillaume.colson@univ-lorraine.fr>
This commit is contained in:
Guillaume Colson 2021-07-15 15:05:40 +02:00 committed by Guillaume COLSON
parent f93fb228e8
commit 44f4023155

View file

@ -61,7 +61,7 @@ class UserAddedToGroupListener implements IEventListener {
}
// Get all group shares this user has access to now to filter later
$shares = $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_GROUP);
$shares = $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_GROUP, null, -1);
foreach ($shares as $share) {
// If this is not the new group we can skip it