From efd4b9de2f18e4f76baf34f626162fc3c4284b5d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 8 Mar 2024 11:06:56 +0900 Subject: hide staffs' answers other than in admin page --- services/app/src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/app/src/App.php') 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} - 回答一覧", -- cgit v1.2.3-70-g09d2