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; }