Add anonymous feedback option for open questions
Open questions can be marked private: the presenter screen and embeds only show the number of answers, participants never see results, and the texts are readable on a new admin answers page and in the CSV. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
07a292d109
commit
367ff8548d
14 files changed
+310
-12
No files matched your search
@@ -25,6 +25,7 @@ use Cake\ORM\Locator\LocatorAwareTrait;
|
||||
* when their deadline has passed.
|
||||
*
|
||||
* Q&A slides have their own participant view (`qa`, see qaState()), never `results`.
|
||||
* Private open questions (anonymous feedback) never show results to participants.
|
||||
*/
|
||||
class PollStateService
|
||||
{
|
||||
@@ -162,6 +163,7 @@ class PollStateService
|
||||
$showResults = $slide !== null
|
||||
&& $slide->isInteractive()
|
||||
&& $qa === null
|
||||
&& !$slide->isPrivate()
|
||||
&& ($quiz !== null
|
||||
? $quiz['phase'] === Slide::QUIZ_FINISHED
|
||||
: ($poll->show_results_to_participants && ($hasResponded || !$isVotingOpen))
|
||||
|
||||
Reference in new issue
Block a user