diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-06 23:09:11 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-07 19:18:32 +0300 |
commit | c407c6485cd2ead0144f9dd1cae9c736178c52b2 (patch) | |
tree | fea9a39d9901a23f6bde8a6ee615ff6d346fcbd5 /lib/Service | |
parent | d53c3d892cd0d78f8d8de5378faf6a0122bf7ed5 (diff) |
Simplify the cases so the events we have to do for the HPB are easier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/RoomService.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index cdf4b98ff..9164f48b2 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -165,6 +165,9 @@ class RoomService { // Make sure the custom flag is set when not setting to default permissions $newPermissions |= Attendee::PERMISSIONS_CUSTOM; } + // If we are setting a fixed set of permissions and apply that to users, + // we can also simplify it and reset to default. + $resetCustomPermissions = true; } elseif ($method === Attendee::PERMISSIONS_MODIFY_ADD) { $newPermissions = $oldPermissions | $newPermissions; } elseif ($method === Attendee::PERMISSIONS_MODIFY_REMOVE) { |