- max_upvotes = 0 disables upvoting: the voting stage is skipped
(collect -> discuss), questions are discussed in submission order
- new setting max_upvotes_per_question caps a participant's upvotes
on a single question (0 = no limit besides max_upvotes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- AppController: joinUrl(), adminUrlFor(), setPollInterval() and protect()
instead of copies in Admin-, Home-, Participate- and EmbedController.
- PollMailer::sendSafely() replaces two try/catch blocks around mail sending.
- Slide::optionIds() replaces five identical array_map() calls.
- PollStateService: one pollPayload() for presenter and embed; the vote
action passes the already loaded slide instead of loading it again.
- ResultsService::forSlide() takes the answer/comment limit and the rating
flag, so ReportService no longer queries answers, comments and the scale
distribution twice and the export loads the slides only once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New SecurityHeadersMiddleware (outermost): CSP with a per-request script
nonce, framing (SAMEORIGIN, embeds via frame-ancestors), nosniff,
Referrer- and Permissions-Policy. JSON, files and error pages are covered
now, not only rendered HTML; headers set by controllers still win.
- The inline theme script carries the nonce; flash messages are dismissed
via data-dismiss instead of inline onclick handlers, and the flash
elements share one template.
- reCAPTCHA sources are only allowed when it is enabled.
- The embed CSRF exception and framing use the same isEmbed() check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- README: all slide types, embedding, results on stage only, all
environment variables, Gitea deployment, actual PHP requirement (8.3+),
third parties (reCAPTCHA, YouTube) in the privacy section.
- AGENTS.md and docblocks: participants never get scale results at all
(participantResults() does not empty comments), list ErrorController and
HostHeaderMiddleware.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop the unused polls.show_results_to_participants column (idempotent migration).
- Remove CaptchaInterface::getType(), the unused AjaxView with its layout,
the empty cell template folder and a redundant setNew() call.
- PollsTable::newPoll() normalises and validates once; the create form used
to validate the raw input first, so an e-mail address with surrounding
spaces was rejected although it would have been trimmed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deleting the live slide set current_slide_id directly, so participants saw
"not started", and deleting the paused slide left paused_slide_id pointing
to a slide that no longer exists. Poll::forgetSlide() now pauses and resumes
with the slide taking its place.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Run the checks and the insert of VoteService::submit() in one transaction
with the slide row locked, so double clicks or retries cannot store a vote
twice (also covers the Q&A upvote budget and word cloud duplicates).
- Limit word cloud terms per request and per participant, and throttle
answers per IP and minute (THROTTLE_VOTES_PER_MINUTE, 429 with message).
- Treat array values in text fields as empty instead of storing "Array".
- Move the throttle helper to AppController for reuse.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deleting a poll removed its slides with a plain deleteAll and relied on
ON DELETE CASCADE for slide options and responses. SQLite does not enforce
foreign keys by default, so answers of deleted polls stayed in the database.
Cascade through the ORM instead and remove the rows left behind earlier.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CakePHP's error logger writes the request URL, the referer and exception
messages (e.g. missing routes) to the log, which leaked the secret admin
token and embed key into logs/error.log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The presentation (current slide, pause) and the open/closed state of
slides are kept. Only quiz and Q&A slides go back to their start, as
the per-slide reset already did before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deletes all responses of all slides, puts every slide back to its
initial state and restarts the presentation. Slides, settings, links
and the join code are kept. The per-slide reset shares the logic via
ResetService and now also reopens closed slides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new Q&A setting allow_self_upvote (off by default) lets participants
spend their upvote budget on their own questions, e.g. for prioritizing
topics. Without it, participants now see a short hint why their own
questions cannot be upvoted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scale slides get the setting comment_interval (seconds per comment,
one of Slide::COMMENT_INTERVALS, default 8). The presenter state
carries it as results.commentInterval and the rotating comments use it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Results belong on the stage. Participants only get results where they
interact with them (word cloud with upvotes) and, once resolved, the
solution of quiz and ordering slides with their own verdict, without
counts or distribution. Removes the per-poll setting
show_results_to_participants (column stays unused).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Anonymous/internal feedback now only presets "hide results" on the stage:
presenter and embed get the full results flagged private and can show them
on demand. Participants still never get results of private slides, the
public PDF export strips them via ResultsService::withoutContents().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The results export is now a PDF (Dompdf) with all interactive slides.
By default private slides (anonymous/internal feedback) only show their
number of participants; ?internal=1 creates the complete version incl.
their answers, marked as confidential on every page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New scale setting comment_ratings: the rating is only shown next to a
comment in the presentation (and sent in the state) when enabled.
- Smaller average figure and gauge on the stage so the chart and the
comments get more room.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Participants still see distribution and average (if enabled), but the
comments are emptied in their state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Setting "private": distribution and average are only shown in the
admin evaluation page and CSV export, the stage shows just the count.
- Setting "comments": optional comment field for participants; on public
scales the comments rotate on the results ("Kommentar X von N") with
previous/next/pause controls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The slide heading on the participant page was smaller than a regular h1
on phones. The theme switch now shows only its icon; the current and
next scheme stay available as aria-label and tooltip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Participants bring shuffled items into the correct order and submit it
once. The admin enters the items in the correct order and can reorder
them by drag & drop or arrow keys. Closing the voting reveals the
solution: how many got it completely right and how often each item was
placed correctly; participants see whether their order was right.
The drag & drop mechanics of the slide list are extracted into a
reusable makeSortable() helper.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sets "IO" in the primary colour so the capital I is not mistaken for
a lowercase l and the input/output pun is visible.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Display name in layouts, mails, docs and comments is now "PlenarIO".
Technical identifiers (config keys, JS namespace, file names, cookies,
existing migrations) stay unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>