Test: only insert empty user
This commit is contained in:
parent
a2c652bef5
commit
81a03b137b
1 changed files with 2 additions and 2 deletions
|
@ -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' => '']);
|
||||||
|
|
Loading…
Reference in a new issue