From 30e28a89f6e915ccfff1bdd2bc2eb961f24c156d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Thu, 12 Dec 2024 09:02:12 +0800 Subject: [PATCH] Update submit.php --- trunk/web/submit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/web/submit.php b/trunk/web/submit.php index 70d13e5d319..e8448d2bbf5 100644 --- a/trunk/web/submit.php +++ b/trunk/web/submit.php @@ -388,7 +388,8 @@ !(isset($_SESSION[$OJ_NAME."_administrator"])|| isset($_SESSION[$OJ_NAME."_source_browser"])|| isset($_SESSION[$OJ_NAME."_contest_creator"])|| - isset($_SESSION[$OJ_NAME."_problem_editor"]) + isset($_SESSION[$OJ_NAME."_problem_editor"])|| + $id==0 ) ){ $sql="select count(1) from solution where user_id=? and result=4 and problem_id=?";