mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
parent
56de3da3a8
commit
b17a405a81
2 changed files with 14 additions and 1 deletions
|
|
@ -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.'),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue