| @@ 156-165 (lines=10) @@ | ||
| 153 | $this->init = true; |
|
| 154 | ||
| 155 | $l = $this->l10nFac->get('lib'); |
|
| 156 | if ($this->config->getSystemValue('knowledgebaseenabled', true)) { |
|
| 157 | $this->add([ |
|
| 158 | 'type' => 'settings', |
|
| 159 | 'id' => 'help', |
|
| 160 | 'order' => 5, |
|
| 161 | 'href' => $this->urlGenerator->linkToRoute('settings_help'), |
|
| 162 | 'name' => $l->t('Help'), |
|
| 163 | 'icon' => $this->urlGenerator->imagePath('settings', 'help.svg'), |
|
| 164 | ]); |
|
| 165 | } |
|
| 166 | ||
| 167 | if ($this->userSession->isLoggedIn()) { |
|
| 168 | if ($this->isAdmin()) { |
|
| @@ 168-178 (lines=11) @@ | ||
| 165 | } |
|
| 166 | ||
| 167 | if ($this->userSession->isLoggedIn()) { |
|
| 168 | if ($this->isAdmin()) { |
|
| 169 | // App management |
|
| 170 | $this->add([ |
|
| 171 | 'type' => 'settings', |
|
| 172 | 'id' => 'core_apps', |
|
| 173 | 'order' => 3, |
|
| 174 | 'href' => $this->urlGenerator->linkToRoute('settings.AppSettings.viewApps'), |
|
| 175 | 'icon' => $this->urlGenerator->imagePath('settings', 'apps.svg'), |
|
| 176 | 'name' => $l->t('Apps'), |
|
| 177 | ]); |
|
| 178 | } |
|
| 179 | ||
| 180 | // Personal settings |
|
| 181 | $this->add([ |
|
| @@ 203-213 (lines=11) @@ | ||
| 200 | 'icon' => $this->urlGenerator->imagePath('core', 'actions/logout.svg'), |
|
| 201 | ]); |
|
| 202 | ||
| 203 | if ($this->isSubadmin()) { |
|
| 204 | // User management |
|
| 205 | $this->add([ |
|
| 206 | 'type' => 'settings', |
|
| 207 | 'id' => 'core_users', |
|
| 208 | 'order' => 4, |
|
| 209 | 'href' => $this->urlGenerator->linkToRoute('settings_users'), |
|
| 210 | 'name' => $l->t('Users'), |
|
| 211 | 'icon' => $this->urlGenerator->imagePath('settings', 'users.svg'), |
|
| 212 | ]); |
|
| 213 | } |
|
| 214 | ||
| 215 | if ($this->isAdmin()) { |
|
| 216 | // Admin settings |
|
| @@ 215-225 (lines=11) @@ | ||
| 212 | ]); |
|
| 213 | } |
|
| 214 | ||
| 215 | if ($this->isAdmin()) { |
|
| 216 | // Admin settings |
|
| 217 | $this->add([ |
|
| 218 | 'type' => 'settings', |
|
| 219 | 'id' => 'admin', |
|
| 220 | 'order' => 2, |
|
| 221 | 'href' => $this->urlGenerator->linkToRoute('settings.AdminSettings.index'), |
|
| 222 | 'name' => $l->t('Admin'), |
|
| 223 | 'icon' => $this->urlGenerator->imagePath('settings', 'admin.svg'), |
|
| 224 | ]); |
|
| 225 | } |
|
| 226 | } |
|
| 227 | ||
| 228 | if ($this->appManager === 'null') { |
|