introduce static configs to enable/disable web-update (and possibly more later on)

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-20 15:18:50 +02:00
parent b362c1f232
commit ebceab96b4
6 changed files with 68 additions and 7 deletions

View File

@@ -228,7 +228,7 @@ return array(
'url' => 'admin_autoupdate.php?page=overview',
'label' => $lng['admin']['autoupdate'],
'required_resources' => 'change_serversettings',
'show_element' => extension_loaded('zip')
'show_element' => extension_loaded('zip') && \Froxlor\Settings::Config('enable_webupdate')
),
array(
'url' => 'admin_settings.php?page=wipecleartextmailpws',