aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/src/App.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-10 12:43:11 +0900
committernsfisis <nsfisis@gmail.com>2024-03-10 12:43:11 +0900
commit9dd611a2fd1fc1d62511161639b3ede824075130 (patch)
treed2a02265a094f5bb637be9b95cb33ed528d19567 /services/app/src/App.php
parent508cfca506d5c4f43d9f9a7377b43d25b2790e6b (diff)
downloadphperkaigi-2024-albatross-9dd611a2fd1fc1d62511161639b3ede824075130.tar.gz
phperkaigi-2024-albatross-9dd611a2fd1fc1d62511161639b3ede824075130.tar.zst
phperkaigi-2024-albatross-9dd611a2fd1fc1d62511161639b3ede824075130.zip
show staff answers
Diffstat (limited to 'services/app/src/App.php')
-rw-r--r--services/app/src/App.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/app/src/App.php b/services/app/src/App.php
index f2f38f4..ec64efd 100644
--- a/services/app/src/App.php
+++ b/services/app/src/App.php
@@ -261,7 +261,7 @@ final class App
if ($quiz->isRankingHidden()) {
$ranking = null;
} else {
- $ranking = $answerRepo->getRankingByBestScores($quiz->quiz_id, upto: 20, show_admin: $isAdmin);
+ $ranking = $answerRepo->getRankingByBestScores($quiz->quiz_id, upto: 20);
}
return $this->render($request, $response, 'quiz_view.html.twig', [
@@ -567,7 +567,7 @@ final class App
if ($quiz === null) {
throw new HttpNotFoundException($request);
}
- $answers = $answerRepo->listByQuizId($quiz->quiz_id, show_admin: true);
+ $answers = $answerRepo->listByQuizId($quiz->quiz_id);
return $this->render($request, $response, 'admin_answer_list.html.twig', [
'page_title' => "管理画面 - 問題 #{$quiz->quiz_id} - 回答一覧",
@@ -965,7 +965,7 @@ final class App
])->withStatus(403);
}
- $correctAnswers = $answerRepo->listAllCorrectAnswers($quiz->quiz_id, show_admin: $isAdmin);
+ $correctAnswers = $answerRepo->listAllCorrectAnswers($quiz->quiz_id);
$stats = [];
foreach ($correctAnswers as $answer) {