Merge pull request #27875 from goyome/goyome-patch-group-shares-limit

No limit in the number of group shares
This commit is contained in:
blizzz 2021-07-14 13:45:50 +02:00 committed by GitHub
commit 5d097ddb4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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