Merge pull request #19060 from nextcloud/backport/19053/stable18

[stable18] Fix loaded controller check
This commit is contained in:
Joas Schilling 2020-01-22 09:45:50 +01:00 committed by GitHub
commit c9d852ade2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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