From ae675ddb9996cd86da4b0c0aeed5d36847de6cc6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 22 Jan 2020 09:48:14 +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 c759045686..4ef244eb03 100644 --- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php @@ -130,7 +130,7 @@ 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') { + if (get_class($controller) === \OCA\Spreed\Controller\PageController::class && $methodName === 'showCall') { $this->navigationManager->setActiveEntry('spreed'); }