fix: 8b45b03225
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

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