diff --git a/lib/Service/BanService.php b/lib/Service/BanService.php index 3b98784f6b4..883f1629dea 100644 --- a/lib/Service/BanService.php +++ b/lib/Service/BanService.php @@ -176,7 +176,7 @@ public function throwIfActorIsBanned(Room $room, ?string $userId): void { } } - if (!in_array($actorType, [Attendee::ACTOR_GUESTS, Attendee::ACTOR_EMAILS], true)) { + if ($actorType !== Attendee::ACTOR_GUESTS) { return; }