Skip to content

Commit

Permalink
Update submit.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Dec 12, 2024
1 parent 3b0bf02 commit 30e28a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trunk/web/submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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=?";
Expand Down

0 comments on commit 30e28a8

Please sign in to comment.