Skip to content

Commit d22e22c

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix: Limit the list of exposed apps to the used app
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 30172c5 commit d22e22c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/TemplateLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getPageTemplate(string $renderAs, string $appId): ITemplate {
157157
$page->assign('appid', $appId);
158158
$page->assign('bodyid', 'body-public');
159159

160-
$this->initialState->provideInitialState('core', 'apps', array_values($this->navigationManager->getAll()));
160+
$this->initialState->provideInitialState('core', 'apps', [$this->navigationManager->get($appId)]);
161161

162162
// Set logo link target
163163
$logoUrl = $this->config->getSystemValueString('logo_url', '');

0 commit comments

Comments
 (0)