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:29:29 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-07 19:18:30 +0300
commit6a1b510916ab81c324c2232fa97a7431d578ccbd (patch)
tree3543fbcd3037ed7ab95ed5cd9017d9b0ed94a19c /lib/Service
parent1b13f80cc119eb386afe72866e6f4f8f9537c471 (diff)
Allow to explicitly set the default and call permissions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ParticipantService.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 91a87bc2e..12dcad0f8 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -302,6 +302,7 @@ class ParticipantService {
$attendee->setActorType(Attendee::ACTOR_GUESTS);
$attendee->setActorId($randomActorId);
$attendee->setParticipantType(Participant::GUEST);
+ $attendee->setPermissions(Attendee::PERMISSIONS_DEFAULT);
$attendee->setLastReadMessage($lastMessage);
$this->attendeeMapper->insert($attendee);
@@ -369,6 +370,7 @@ class ParticipantService {
$attendee->setRemoteId($participant['remoteId']);
}
$attendee->setParticipantType($participant['participantType'] ?? Participant::USER);
+ $attendee->setPermissions(Attendee::PERMISSIONS_DEFAULT);
$attendee->setLastReadMessage($lastMessage);
$attendee->setReadPrivacy($readPrivacy);
try {
@@ -464,6 +466,7 @@ class ParticipantService {
$attendee->setActorId($group->getGID());
$attendee->setDisplayName($group->getDisplayName());
$attendee->setParticipantType(Participant::USER);
+ $attendee->setPermissions(Attendee::PERMISSIONS_DEFAULT);
$attendee->setReadPrivacy(Participant::PRIVACY_PRIVATE);
$this->attendeeMapper->insert($attendee);
@@ -564,6 +567,7 @@ class ParticipantService {
$attendee->setActorId($circle->getSingleId());
$attendee->setDisplayName($circle->getDisplayName());
$attendee->setParticipantType(Participant::USER);
+ $attendee->setPermissions(Attendee::PERMISSIONS_DEFAULT);
$attendee->setReadPrivacy(Participant::PRIVACY_PRIVATE);
$this->attendeeMapper->insert($attendee);