mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
system: also pick up root user
This commit is contained in:
parent
e8832a22fa
commit
3f3ebd9687
@ -413,7 +413,7 @@ function local_sync_accounts()
|
||||
foreach ($data as $record) {
|
||||
$line = explode(':', $record);
|
||||
// filter system managed users and groups
|
||||
if (count($line) < 3 || !strncmp($line[0], '_', 1) || $line[2] < 2000 || $line[2] > 65000) {
|
||||
if (count($line) < 3 || !strncmp($line[0], '_', 1) || ($line[2] < 2000 && $line[0] != 'root') || $line[2] > 65000) {
|
||||
continue;
|
||||
}
|
||||
$current_data[$section][$line[2]] = $line;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user