Merge pull request #19053 from nextcloud/bugfix/noid/opsy-fix-loaded-controller-check

Fix loaded controller check
This commit is contained in:
Roeland Jago Douma 2020-01-21 20:12:43 +01:00 committed by GitHub
commit a54d89a8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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