From 55a68138b549685c3ed3cba00adc15407e3132ba Mon Sep 17 00:00:00 2001 From: Epagris Date: Sat, 7 Sep 2024 18:34:20 +0200 Subject: [PATCH] - quizmasters can open result analyzer on every game --- result_analyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/result_analyzer.php b/result_analyzer.php index bca0a6a..dd36ddd 100644 --- a/result_analyzer.php +++ b/result_analyzer.php @@ -17,7 +17,7 @@ if ($game_id === "") { require_once "gamemgr.php"; // no user without access may tamper with the results -if (!is_user_contributor_to_game($game_id, $user_data["nickname"])) { +if (!is_user_contributor_to_game($game_id, $user_data["nickname"]) && ($user_data["privilege"] !== PRIVILEGE_QUIZMASTER)) { exit(); }