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
path: root/lib/Model
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-07 20:55:34 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-07 20:55:34 +0300
commit24b6037558fa604721fb6cd6b5d37a51b67ac2ef (patch)
tree62243db85a01e67fdffbbdfb2821e398b41aae2f /lib/Model
parent76852c427dd0d0936fceb839b9e6083932d077ba (diff)
Fix integration tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/AttendeeMapper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Model/AttendeeMapper.php b/lib/Model/AttendeeMapper.php
index 37356a410..758e57694 100644
--- a/lib/Model/AttendeeMapper.php
+++ b/lib/Model/AttendeeMapper.php
@@ -207,7 +207,9 @@ class AttendeeMapper extends QBMapper {
], IQueryBuilder::PARAM_STR_ARRAY)));
if ($mode === Attendee::PERMISSIONS_MODIFY_SET) {
- $newState |= Attendee::PERMISSIONS_CUSTOM;
+ if ($newState !== Attendee::PERMISSIONS_DEFAULT) {
+ $newState |= Attendee::PERMISSIONS_CUSTOM;
+ }
$query->set('permissions', $query->createNamedParameter($newState, IQueryBuilder::PARAM_INT));
$query->executeStatement();
} else {