installer: forcefully set uid to 0 for installer user

cc @fichtner
This commit is contained in:
Ad Schellevis
2026-10-10 09:41:25 +02:00
parent 180f245170
commit bf468af18e
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ function sync_installer_user()
$installer->setNodes($root->getNodeContent());
$installer->descr = 'System Installer';
$installer->name = 'installer';
$installer->uid = '0'; /* needs a reset */
$installer->uid->updateValue('0'); /* needs a reset */
if ($usermdl->serializeToConfig(false, true)) {
Config::getInstance()->save();
@@ -68,6 +68,15 @@ class UidField extends IntegerField
}
}
/**
* (forcefully) update value ignoring default behavior
* @param string $value set field value
*/
public function updateValue($value)
{
parent::setValue($value);
}
/**
* {@inheritdoc}
*/