Skip to content
Snippets Groups Projects
Verified Commit 9a60db8a authored by Damien's avatar Damien
Browse files

FEAT #14214 TIME 1:20 Fix first time installer

parent 8aa676e0
No related branches found
No related tags found
No related merge requests found
......@@ -725,10 +725,21 @@ class AuthenticationController
'PUT/installer/administrator', 'DELETE/installer/lock'
];
if (is_file("custom/custom.json")) {
return false;
} elseif (!in_array($args['route'], $installerRoutes)) {
if (!in_array($args['route'], $installerRoutes)) {
return false;
} elseif (is_file("custom/custom.json")) {
$customs = scandir('custom');
if (count($customs) > 4) {
return false;
}
foreach ($customs as $custom) {
if (in_array($custom, ['custom.json', '.', '..'])) {
continue;
}
if (!is_file("custom/{$custom}/initializing.lck")) {
return false;
}
}
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment