Skip to content

Commit 15f00f0

Browse files
nickvergessenrullzer
authored andcommitted
Mark "Talk" active on /call/token URLs
Signed-off-by: Joas Schilling <[email protected]>
1 parent 9fe4b95 commit 15f00f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ public function beforeController($controller, $methodName) {
128128
// for normal HTML requests and not for AJAX requests
129129
$this->navigationManager->setActiveEntry($this->appName);
130130

131+
/** @suppress PhanUndeclaredClassConstant */
132+
if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') {
133+
$this->navigationManager->setActiveEntry('spreed');
134+
}
135+
131136
// security checks
132137
$isPublicPage = $this->reflector->hasAnnotation('PublicPage');
133138
if(!$isPublicPage) {

0 commit comments

Comments
 (0)