fix shell-select for customer ftp-accounts if shell is enabled; fix typo in UserCommand

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-10-06 14:23:56 +02:00
parent 13c53b074c
commit a37beef18e
4 changed files with 13 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ return [
'visible' => Settings::Get('system.allow_customer_shell') == '1',
'label' => lng('panel.shell'),
'type' => 'select',
'select_var' => $shells_avail,
'select_var' => $shells,
'selected' => '/bin/false'
]
]

View File

@@ -61,7 +61,7 @@ return [
'visible' => Settings::Get('system.allow_customer_shell') == '1',
'label' => lng('panel.shell'),
'type' => 'select',
'select_var' => $shells_avail,
'select_var' => $shells,
'selected' => $result['shell'] ?? '/bin/false'
]
]