aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/src/App.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-08 11:06:56 +0900
committernsfisis <nsfisis@gmail.com>2024-03-08 11:06:56 +0900
commitefd4b9de2f18e4f76baf34f626162fc3c4284b5d (patch)
tree1beea09ac8b32dfca6900352f6a20cab9d8ed72b /services/app/src/App.php
parent34b12c386392e811301385517a3b2471a3c0beb3 (diff)
downloadphperkaigi-2024-albatross-efd4b9de2f18e4f76baf34f626162fc3c4284b5d.tar.gz
phperkaigi-2024-albatross-efd4b9de2f18e4f76baf34f626162fc3c4284b5d.tar.zst
phperkaigi-2024-albatross-efd4b9de2f18e4f76baf34f626162fc3c4284b5d.zip
hide staffs' answers other than in admin page
Diffstat (limited to 'services/app/src/App.php')
-rw-r--r--services/app/src/App.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/app/src/App.php b/services/app/src/App.php
index b3e3491..dfcc06d 100644
--- a/services/app/src/App.php
+++ b/services/app/src/App.php
@@ -563,7 +563,7 @@ final class App
if ($quiz === null) {
throw new HttpNotFoundException($request);
}
- $answers = $answerRepo->listByQuizId($quiz->quiz_id);
+ $answers = $answerRepo->listByQuizId($quiz->quiz_id, show_admin: true);
return $this->render($request, $response, 'admin_answer_list.html.twig', [
'page_title' => "管理画面 - 問題 #{$quiz->quiz_id} - 回答一覧",