1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-30 18:37:03 +00:00

fix: 8b45b03225b174abd20531a244cfddd0bf96b137

This commit is contained in:
Baoshuo Ren 2023-02-20 11:54:54 +08:00
parent 62d256835a
commit 3c3ec65551
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

@ -7,7 +7,7 @@ $res = [];
foreach ($_GET['get'] as $id) {
($submission = UOJSubmission::query($id)) || UOJResponse::page404();
$submission->setProblem() || UOJResponse::page404();
$submission->userIsSubmitter(Auth::user()) || UOJResponse::page403();
// $submission->userIsSubmitter(Auth::user()) || UOJResponse::page403();
$submission->userCanView(Auth::user(), ['ensure' => true]);
$res[] = [
'judged' => $submission->hasJudged(),