No limit in the number of group shares

By default, autoaccept doesn't work if the user has more than 50 group shares

Signed-off-by: Guillaume COLSON <guillaume.colson@univ-lorraine.fr>
pull/27875/head
Guillaume Colson 2021-07-08 16:37:27 +07:00 committed by Guillaume COLSON
parent 57e669e797
commit 3a5918d932
1 changed files with 1 additions and 1 deletions

@ -60,7 +60,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