add option: the menu is enabled by default for users

This commit is contained in:
Simon Vieille
2020-10-19 13:44:07 +02:00
parent a71a8c7208
commit 80700cac32
6 changed files with 38 additions and 2 deletions
+5 -1
View File
@@ -72,7 +72,11 @@ class Personal implements ISettings
$parameters = [
'force' => $this->config->getAppValueBool('force', '0'),
'enabled' => $this->config->getUserValue($user, 'enabled', '1'),
'enabled' => $this->config->getUserValue(
$user,
'enabled',
$this->config->getAppValue('default-enabled', '1')
),
'top-menu-apps' => $this->config->getUserValueArray($user, 'top-menu-apps', '[]'),
'target-blank-mode' => $this->config->getUserValue($user, 'target-blank-mode', '1'),
'target-blank-apps' => $this->config->getUserValueArray($user, 'target-blank-apps', '[]'),