Skip to content

Commit

Permalink
fix(upgrades): make sure all friends are migrated to the new ACL
Browse files Browse the repository at this point in the history
Adds missing limit clause
  • Loading branch information
hypeJunction committed May 28, 2018
1 parent cde55d5 commit 0da3036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/classes/Elgg/Upgrades/MigrateFriendsACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public function run(Result $result, $offset) {
}

protected function addFriendsToACL(\ElggUser $user, \ElggAccessCollection $acl) {
$friends = $user->getFriends(['batch' => true]);
$friends = $user->getFriends([
'batch' => true,
'limit' => false,
]);
foreach ($friends as $friend) {
$acl->addMember($friend->guid);
}
Expand Down

0 comments on commit 0da3036

Please sign in to comment.