diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-12 11:34:49 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-12 11:34:49 +0200 |
commit | f7ffbce2065311a4b494dea7a0cb175288a53b99 (patch) | |
tree | df0de2c998a1d52febaa31f995eefacc0570863b /lib | |
parent | 4413e89c4ae7d2e7414bd8ba820aee5dad001cf7 (diff) |
fix(settings): Fix recording server check for blocked admins
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Middleware/CanUseTalkMiddleware.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Middleware/CanUseTalkMiddleware.php b/lib/Middleware/CanUseTalkMiddleware.php index 375a40fe4..f659cf952 100644 --- a/lib/Middleware/CanUseTalkMiddleware.php +++ b/lib/Middleware/CanUseTalkMiddleware.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace OCA\Talk\Middleware; use OCA\Talk\Config; +use OCA\Talk\Controller\RecordingController; use OCA\Talk\Controller\SignalingController; use OCA\Talk\Exceptions\ForbiddenException; use OCA\Talk\Middleware\Attribute\RequireCallEnabled; @@ -66,7 +67,8 @@ class CanUseTalkMiddleware extends Middleware { $user = $this->userSession->getUser(); if ($user instanceof IUser && $this->talkConfig->isDisabledForUser($user)) { if ($methodName === 'getWelcomeMessage' - && $controller instanceof SignalingController + && ($controller instanceof SignalingController + || $controller instanceof RecordingController) && $this->groupManager->isAdmin($user->getUID())) { return; } |