summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-05-11 08:46:45 +0200
committerJoas Schilling <coding@schilljs.com>2023-05-11 13:56:53 +0200
commit0b82954cc8bd04e2c7e4c14e6ea448df00ec70eb (patch)
treef62c23fac7bfd76df672c5a96035f8976c7a3d89 /lib
parent1bf04bd74352c00b6709f07cd26f01eb3cb4927d (diff)
fix(participants): Fix clearing of inactive guests
Oracle, MySQL and SQLite return ints as strings from the DB Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/ParticipantService.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 4f14b456c..8486e14de 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -1010,8 +1010,9 @@ class ParticipantService {
continue;
}
- if ($row['permissions'] !== Attendee::PERMISSIONS_DEFAULT
- || $row['participant_type'] === Participant::GUEST_MODERATOR) {
+ if ((int) $row['participant_type'] !== Participant::GUEST
+ || ((int) $row['permissions'] !== Attendee::PERMISSIONS_DEFAULT
+ && (int) $row['permissions'] !== Attendee::PERMISSIONS_CUSTOM)) {
// Keep guests with non-default permissions in case they just reconnect
continue;
}