aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-01-22 09:45:50 +0100
committerGitHub <noreply@github.com>2020-01-22 09:45:50 +0100
commitc9d852ade23e8cf61feae355215c4c150f7d0c99 (patch)
tree5010cd2963fb261c025a7d211abcd2cd0a2e5f0e /lib
parent986ad0a49737252dbfd0427bd8015adb3bfb6acd (diff)
parentf215d2f8c9479f45df12f69fa4b1260211b05ec0 (diff)
downloadnextcloud-server-c9d852ade23e8cf61feae355215c4c150f7d0c99.tar.gz
nextcloud-server-c9d852ade23e8cf61feae355215c4c150f7d0c99.zip
Merge pull request #19060 from nextcloud/backport/19053/stable18
[stable18] Fix loaded controller check
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index 9aeaf79196e..16f1fb35a82 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -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');
}