mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix issues
This commit is contained in:
@@ -346,6 +346,8 @@ class Update extends Install
|
||||
Artisan::call("upgrade:migrate_torrents_table_text_column");
|
||||
Language::updateTransStatus();
|
||||
$this->addSetting('main.complain_enabled', 'yes');
|
||||
$this->addSetting('image_hosting.driver', 'local');
|
||||
$this->addSetting('permission.user_token_allowed', json_encode(TokenRepository::listUserTokenPermissions(false)));
|
||||
}
|
||||
if (!$redis->exists(Setting::USER_TOKEN_PERMISSION_ALLOWED_CACHE_KRY)) {
|
||||
Setting::updateUserTokenPermissionAllowedCache(TokenRepository::listUserTokenPermissions(false));
|
||||
|
||||
@@ -459,4 +459,7 @@ return array (
|
||||
'permission' => [
|
||||
'user_token_allowed' => \App\Repositories\TokenRepository::listUserTokenPermissions(false),
|
||||
],
|
||||
'image_hosting' => [
|
||||
'driver' => 'local',
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user