mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:10:11 +00:00
Relocate system user creation
This commit is contained in:
parent
d7fa58d81c
commit
b09ffa0697
2 changed files with 20 additions and 18 deletions
|
@ -1075,24 +1075,6 @@ class DBStructure
|
|||
}
|
||||
}
|
||||
|
||||
/* if (self::existsTable('user') && DBA::exists('user', ['uid' => 0])) {
|
||||
$system = User::getSystemAccount();
|
||||
$user = [
|
||||
"username" => $system['name'],
|
||||
"nickname" => $system['nick'],
|
||||
"register_date" => $system['created'],
|
||||
"pubkey" => $system['pubkey'],
|
||||
"prvkey" => $system['prvkey'],
|
||||
"spubkey" => $system['spubkey'],
|
||||
"sprvkey" => $system['sprvkey'],
|
||||
"verified" => true,
|
||||
"page-flags" => User::PAGE_FLAGS_SOAPBOX,
|
||||
"account-type" => User::ACCOUNT_TYPE_RELAY,
|
||||
];
|
||||
|
||||
DBA::update('user', $user, ['uid' => 0]);
|
||||
}
|
||||
*/
|
||||
if (self::existsTable('permissionset')) {
|
||||
if (!DBA::exists('permissionset', ['id' => 0])) {
|
||||
DBA::insert('permissionset', ['allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue