feat(problem/remote): rejudge

This commit is contained in:
Baoshuo Ren 2023-01-22 17:56:36 +08:00
parent 195f21fab6
commit dc32574585
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

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