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-09-23 16:30:36 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-07 19:18:30 +0300
commitf18aa001c7349592c7354e397589ce556c1f5139 (patch)
tree39ccd4916aadf14017216fa433b4100352355c41 /lib/Room.php
parent6a1b510916ab81c324c2232fa97a7431d578ccbd (diff)
Reset call permissions when the call ended
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Room.php')
-rw-r--r--lib/Room.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Room.php b/lib/Room.php
index 43126ae1a..06d6eff2b 100644
--- a/lib/Room.php
+++ b/lib/Room.php
@@ -830,6 +830,7 @@ class Room {
->set('active_guests', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
->set('active_since', $query->createNamedParameter(null, IQueryBuilder::PARAM_DATE))
->set('call_flag', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
+ ->set('call_permissions', $query->createNamedParameter(Attendee::PERMISSIONS_DEFAULT, IQueryBuilder::PARAM_INT))
->where($query->expr()->eq('id', $query->createNamedParameter($this->getId(), IQueryBuilder::PARAM_INT)))
->andWhere($query->expr()->isNotNull('active_since'));