diff options
Diffstat (limited to 'lib/Controller/PollController.php')
-rw-r--r-- | lib/Controller/PollController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/PollController.php b/lib/Controller/PollController.php index cfebd9a14..b4950692a 100644 --- a/lib/Controller/PollController.php +++ b/lib/Controller/PollController.php @@ -77,7 +77,8 @@ class PollController extends AEnvironmentAwareController { * @return DataResponse */ public function createPoll(string $question, array $options, int $resultMode, int $maxVotes): DataResponse { - if ($this->room->getType() === Room::TYPE_ONE_TO_ONE) { + if ($this->room->getType() === Room::TYPE_ONE_TO_ONE + || $this->room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) { return new DataResponse([], Http::STATUS_BAD_REQUEST); } |