Skip to content

Commit

Permalink
Update submit.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Feb 11, 2025
1 parent 00f9c2b commit abaf32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
$test_run = $id<=0;
$sql = "select `problem_id`,defunct FROM `problem` WHERE `problem_id`='$id' ";

if(!($test_run||isset($_SESSION[$OJ_NAME.'_'.'administrator'])))
if(!($test_run||isset($_SESSION[$OJ_NAME.'_'.'administrator']) || isset($_SESSION[$OJ_NAME.'_'.'problem_editor']) || isset($_SESSION[$OJ_NAME.'_'.'problem_verifiter']) ))
$sql .= " and defunct='N'";
}

Expand Down

0 comments on commit abaf32c

Please sign in to comment.