|
|
@@ -310,6 +310,10 @@ class UserLogic
|
|
|
->chunk(100, function ($users) use ($pid, $oldPathPrefix, $newPathPrefix, $uid) {
|
|
|
foreach ($users as $user) {
|
|
|
$newPath = str_replace($oldPathPrefix, $newPathPrefix, $user['path']);
|
|
|
+ if (in_array($user['id'], explode(',', $newPath))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
User::modifyUserPath($user['id'], $newPath);
|
|
|
}
|
|
|
});
|