Fix loaded controller check

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-01-22 09:48:14 +01:00
parent cd7dad8ff8
commit ae675ddb99
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

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