From 44f402315532dbd3b7f1715623f1050b2a533e2a Mon Sep 17 00:00:00 2001 From: Guillaume Colson Date: Thu, 15 Jul 2021 15:05:40 +0200 Subject: [PATCH] Update UserAddedToGroupListener.php Signed-off-by: Guillaume COLSON --- apps/files_sharing/lib/Listener/UserAddedToGroupListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php b/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php index 623591da310d4..e8a62f96e575a 100644 --- a/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php +++ b/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php @@ -61,7 +61,7 @@ public function handle(Event $event): void { } // 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