Skip to content

Commit c17d86c

Browse files
committed
Mark "Talk" active on /call/token URLs
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent f7732ac commit c17d86c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,19 @@ public function __construct(IRequest $request,
121121
* @param Controller $controller the controller
122122
* @param string $methodName the name of the method
123123
* @throws SecurityException when a security check fails
124+
*
125+
* @suppress PhanUndeclaredClassConstant
124126
*/
125127
public function beforeController($controller, $methodName) {
126128

127129
// this will set the current navigation entry of the app, use this only
128130
// for normal HTML requests and not for AJAX requests
129131
$this->navigationManager->setActiveEntry($this->appName);
130132

133+
if ($controller === \OCA\Spreed\Controller\PageController::class && $methodName === 'showCall') {
134+
$this->navigationManager->setActiveEntry('spreed');
135+
}
136+
131137
// security checks
132138
$isPublicPage = $this->reflector->hasAnnotation('PublicPage');
133139
if(!$isPublicPage) {

0 commit comments

Comments
 (0)