Update core option in application.ini for #337

Default = off
This commit is contained in:
the-djmaze 2022-04-21 11:06:26 +02:00
parent 56de3da3a8
commit b17a405a81
2 changed files with 14 additions and 1 deletions

View file

@ -185,6 +185,18 @@ class Application extends \RainLoop\Config\AbstractConfig
'encrypt_cipher' => array($sCipher)
),
'admin_panel' => array(
/*
'enabled' => array(true, 'Access settings'),
'login' => array('admin', 'Login and password for web admin panel'),
'password' => array(''),
'totp' => array(''),
'host' => array(''),
'key' => array('admin'),
*/
'allow_update' => array(false)
),
'ssl' => array(
'verify_certificate' => array(false, 'Require verification of SSL certificate used.'),
'allow_self_signed' => array(true, 'Allow self-signed certificates. Requires verify_certificate.'),

View file

@ -173,7 +173,8 @@ abstract class Repository
{
return \version_compare(APP_VERSION, '2.0', '>')
&& \is_writable(\dirname(APP_VERSION_ROOT_PATH))
&& \is_writable(APP_INDEX_ROOT_PATH . 'index.php');
&& \is_writable(APP_INDEX_ROOT_PATH . 'index.php')
&& \RainLoop\Api::Config()->Get('admin_panel', 'allow_update', false);
}
public static function getPackagesList() : array