diff options
author | Joas Schilling <coding@schilljs.com> | 2019-11-07 23:40:02 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-12 21:39:20 +0100 |
commit | 15f00f01263aa00d7722bf5618cb062170d5830e (patch) | |
tree | 6450699274f19dc4d156b413e3df85b9e270cb0a /lib/private/AppFramework/Middleware | |
parent | 9fe4b953e98a067b77ccf10f848b97724ac82c0a (diff) | |
download | nextcloud-server-15f00f01263aa00d7722bf5618cb062170d5830e.tar.gz nextcloud-server-15f00f01263aa00d7722bf5618cb062170d5830e.zip |
Mark "Talk" active on /call/token URLs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/AppFramework/Middleware')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php index 4f380f07d91..52d1823f219 100644 --- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php @@ -128,6 +128,11 @@ class SecurityMiddleware extends Middleware { // for normal HTML requests and not for AJAX requests $this->navigationManager->setActiveEntry($this->appName); + /** @suppress PhanUndeclaredClassConstant */ + if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') { + $this->navigationManager->setActiveEntry('spreed'); + } + // security checks $isPublicPage = $this->reflector->hasAnnotation('PublicPage'); if(!$isPublicPage) { |