add gui_access flag to admins and customers to allow/disallow login to the webui; fixes #1219
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -71,6 +71,14 @@ return [
|
||||
'selected' => $result['def_language'],
|
||||
'visible' => $result['adminid'] != $userinfo['userid']
|
||||
],
|
||||
'gui_access' => [
|
||||
'label' => lng('usersettings.gui_access.title'),
|
||||
'desc' => lng('usersettings.gui_access.description'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'checked' => $result['gui_access'],
|
||||
'visible' => $result['adminid'] != $userinfo['userid']
|
||||
],
|
||||
'api_allowed' => [
|
||||
'label' => lng('usersettings.api_allowed.title'),
|
||||
'desc' => lng('usersettings.api_allowed.description'),
|
||||
@@ -78,7 +86,7 @@ return [
|
||||
'value' => '1',
|
||||
'checked' => $result['api_allowed'],
|
||||
'visible' => Settings::Get('api.enabled') == '1'
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'section_b' => [
|
||||
|
||||
Reference in New Issue
Block a user