From c17d86c081c9d097b765dfaf83db776d18cc97bb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Dec 2019 10:13:44 +0100 Subject: [PATCH] Mark "Talk" active on /call/token URLs Signed-off-by: Joas Schilling --- .../AppFramework/Middleware/Security/SecurityMiddleware.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php index 4f380f07d9..c759045686 100644 --- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php @@ -121,6 +121,8 @@ class SecurityMiddleware extends Middleware { * @param Controller $controller the controller * @param string $methodName the name of the method * @throws SecurityException when a security check fails + * + * @suppress PhanUndeclaredClassConstant */ public function beforeController($controller, $methodName) { @@ -128,6 +130,10 @@ class SecurityMiddleware extends Middleware { // for normal HTML requests and not for AJAX requests $this->navigationManager->setActiveEntry($this->appName); + if ($controller === \OCA\Spreed\Controller\PageController::class && $methodName === 'showCall') { + $this->navigationManager->setActiveEntry('spreed'); + } + // security checks $isPublicPage = $this->reflector->hasAnnotation('PublicPage'); if(!$isPublicPage) {