diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-11 08:46:45 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-11 13:56:53 +0200 |
commit | 0b82954cc8bd04e2c7e4c14e6ea448df00ec70eb (patch) | |
tree | f62c23fac7bfd76df672c5a96035f8976c7a3d89 /lib | |
parent | 1bf04bd74352c00b6709f07cd26f01eb3cb4927d (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.php | 5 |
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; } |