Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-06 23:09:11 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-07 19:18:32 +0300
commitc407c6485cd2ead0144f9dd1cae9c736178c52b2 (patch)
treefea9a39d9901a23f6bde8a6ee615ff6d346fcbd5 /lib/Service
parentd53c3d892cd0d78f8d8de5378faf6a0122bf7ed5 (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.php3
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) {