Fix loaded controller check

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-01-21 16:35:10 +01:00 committed by Backportbot
parent 986ad0a497
commit f215d2f8c9

View file

@ -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');
}