forked from deblan/side_menu
add option: the menu is enabled by default for users
This commit is contained in:
parent
a71a8c7208
commit
80700cac32
6 changed files with 38 additions and 2 deletions
|
|
@ -58,7 +58,16 @@ class Application extends App
|
|||
$isForced = (bool) $this->config->getAppValue(self::APP_ID, 'force', '0');
|
||||
|
||||
if (null !== $this->user && !$isForced) {
|
||||
$enabled = (bool) $this->config->getUserValue($this->user->getUid(), self::APP_ID, 'enabled', '1');
|
||||
$enabled = (bool) $this->config->getUserValue(
|
||||
$this->user->getUid(),
|
||||
self::APP_ID,
|
||||
'enabled',
|
||||
$this->config->getAppValue(
|
||||
self::APP_ID,
|
||||
'default-enabled',
|
||||
'1'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $enabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue