[Web] Disable SSO button when admin login is disabled, fixes #4297

This commit is contained in:
andryyy
2021-10-27 13:42:45 +02:00
parent c0011013b8
commit f01de1a5c0
2 changed files with 10 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ $globalVariables = [
'available_languages' => $AVAILABLE_LANGUAGES,
'lang' => $lang,
'skip_sogo' => (getenv('SKIP_SOGO') == 'y'),
'allow_admin_email_login' => (getenv('ALLOW_ADMIN_EMAIL_LOGIN') == 'n'),
'mailcow_apps' => $MAILCOW_APPS,
'app_links' => customize('get', 'app_links'),
'is_root_uri' => (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) == '/'),