corrected domain-formfields visibility flag for ssl-related settings

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-26 12:07:55 +02:00
parent c087ac18d5
commit dbd1fe3846
2 changed files with 5 additions and 2 deletions

View File

@@ -207,6 +207,7 @@ return [
'value' => lng('panel.nosslipsavailable')
],
'ssl_ipandport' => [
'visible' => !empty($ssl_ipsandports),
'label' => lng('domains.ipandport_ssl_multi.title'),
'desc' => lng('domains.ipandport_multi.description'),
'type' => 'checkbox',
@@ -303,7 +304,7 @@ return [
'checked' => false
],
'hsts_maxage' => [
'visible' => $ssl_ipsandports != '',
'visible' => !empty($ssl_ipsandports),
'label' => lng('admin.domain_hsts_maxage.title'),
'desc' => lng('admin.domain_hsts_maxage.description'),
'type' => 'number',

View File

@@ -234,6 +234,7 @@ return [
'value' => lng('panel.nosslipsavailable')
],
'ssl_ipandport' => [
'visible' => !empty($ssl_ipsandports),
'label' => lng('domains.ipandport_ssl_multi.title'),
'desc' => lng('domains.ipandport_multi.description'),
'type' => 'checkbox',
@@ -313,7 +314,7 @@ return [
'value' => !empty($result['tlsv13_cipher_list']) ? $result['tlsv13_cipher_list'] : Settings::Get('system.tlsv13_cipher_list')
],
'ssl_specialsettings' => [
'visible' => $userinfo['change_serversettings'] == '1',
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
'label' => lng('admin.ownsslvhostsettings'),
'desc' => lng('serversettings.default_vhostconf.description'),
'type' => 'textarea',
@@ -322,6 +323,7 @@ return [
'value' => $result['ssl_specialsettings']
],
'include_specialsettings' => [
'visible' => !empty($ssl_ipsandports) && $userinfo['change_serversettings'] == '1',
'label' => lng('serversettings.includedefault_sslvhostconf'),
'type' => 'checkbox',
'value' => '1',