зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #7824 from nextcloud/bugfix/noid/fix-handling-of-guest-moderators
Make handling of guest moderators consistent on different endpoints f…
This commit is contained in:
Коммит
68081ac319
|
@ -343,7 +343,7 @@ class ChatManager {
|
|||
|
||||
$attendee = $participant->getAttendee();
|
||||
|
||||
if (!$participant->hasModeratorPermissions() &&
|
||||
if (!$participant->hasModeratorPermissions(false) &&
|
||||
!($attendee->getActorType() === Attendee::ACTOR_USERS && $attendee->getActorId() === $share->getShareOwner())) {
|
||||
// Only moderators or the share owner can delete the share
|
||||
return;
|
||||
|
|
|
@ -252,7 +252,7 @@ class PollController extends AEnvironmentAwareController {
|
|||
|
||||
if (!$canSeeSummary && $poll->getStatus() === Poll::STATUS_OPEN) {
|
||||
$data['votes'] = [];
|
||||
if ($this->participant->hasModeratorPermissions(false)
|
||||
if ($this->participant->hasModeratorPermissions()
|
||||
|| ($poll->getActorType() === $this->participant->getAttendee()->getActorType()
|
||||
&& $poll->getActorId() === $this->participant->getAttendee()->getActorId())) {
|
||||
// Allow moderators and the author to see the number of voters,
|
||||
|
|
Загрузка…
Ссылка в новой задаче