From f215d2f8c9479f45df12f69fa4b1260211b05ec0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 21 Jan 2020 16:35:10 +0100 Subject: [PATCH] Fix loaded controller check Signed-off-by: Joas Schilling --- .../AppFramework/Middleware/Security/SecurityMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php index 9aeaf79196..16f1fb35a8 100644 --- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php @@ -131,7 +131,7 @@ class SecurityMiddleware extends Middleware { // for normal HTML requests and not for AJAX requests $this->navigationManager->setActiveEntry($this->appName); - if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') { + if (get_class($controller) === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') { $this->navigationManager->setActiveEntry('spreed'); }