mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Update install.php per issue #44
This commit is contained in:
@@ -1039,7 +1039,9 @@ class Installer {
|
||||
$superuserRole = $wire->roles->get("name=superuser");
|
||||
$user = $wire->users->get($wire->config->superUserPageID);
|
||||
|
||||
if(!$user->id) {
|
||||
if($user->id) {
|
||||
$user->of(false);
|
||||
} else {
|
||||
$user = new User();
|
||||
$user->id = $wire->config->superUserPageID;
|
||||
}
|
||||
|
Reference in New Issue
Block a user