Let participants edit their scale comment while voting is open

Participants can fix typos in, add or remove their own comment until the
voting closes. The rating itself stays unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 11:40:24 +01:00
1 parent bd488e0b81
commit d518b7a37e
6 files changed
+244 -20

No files matched your search

+4
View File
@@ -37,6 +37,10 @@ return function (RouteBuilder $routes): void {
->setPatterns(['code' => '[A-Za-z0-9-]{4,16}'])
->setPass(['code'])
->setMethods(['POST']);
$builder->connect('/p/{code}/comment', 'Participate::comment', ['_name' => 'participate:comment'])
->setPatterns(['code' => '[A-Za-z0-9-]{4,16}'])
->setPass(['code'])
->setMethods(['POST']);
// --- embedded slides (secret embed key, e.g. Canva) -----------------
// No CSRF check here (see Application::middleware()): runs in third-party iframes