Skip to content

Commit

Permalink
fix(ban): Allow email guests to bypass bans on their IP
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 23, 2024
1 parent 13f8f71 commit 644c3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/BanService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 644c3fa

Please sign in to comment.