From dc32574585bfee12e9e86c0211eb5d1fd016b009 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 22 Jan 2023 17:56:36 +0800 Subject: [PATCH] feat(problem/remote): rejudge --- web/app/models/UOJSubmission.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/models/UOJSubmission.php b/web/app/models/UOJSubmission.php index 391f64b..8f5e341 100644 --- a/web/app/models/UOJSubmission.php +++ b/web/app/models/UOJSubmission.php @@ -407,6 +407,10 @@ class UOJSubmission { } public function userCanSeeMinorVersions(array $user = null) { + if ($this->problem->info['type'] == 'remote') { + return false; + } + if (isSuperUser($user)) { return true; } @@ -414,10 +418,6 @@ class UOJSubmission { } public function userCanRejudge(array $user = null) { - if ($this->problem->info['type'] == 'remote') { - return false; - } - if (isSuperUser($user)) { return true; }