Test: only insert empty user

This commit is contained in:
Michael 2020-11-18 05:04:17 +00:00
parent a2c652bef5
commit 81a03b137b

View file

@ -1070,7 +1070,7 @@ class DBStructure
} }
} }
if (self::existsTable('user') && DBA::exists('user', ['uid' => 0])) { /* if (self::existsTable('user') && DBA::exists('user', ['uid' => 0])) {
$system = User::getSystemAccount(); $system = User::getSystemAccount();
$user = [ $user = [
"username" => $system['name'], "username" => $system['name'],
@ -1087,7 +1087,7 @@ class DBStructure
DBA::update('user', $user, ['uid' => 0]); DBA::update('user', $user, ['uid' => 0]);
} }
*/
if (self::existsTable('permissionset')) { if (self::existsTable('permissionset')) {
if (!DBA::exists('permissionset', ['id' => 0])) { if (!DBA::exists('permissionset', ['id' => 0])) {
DBA::insert('permissionset', ['allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '']); DBA::insert('permissionset', ['allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '']);