mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 11:48:41 +00:00
feat(problem/remote): rejudge
This commit is contained in:
parent
195f21fab6
commit
dc32574585
@ -407,6 +407,10 @@ class UOJSubmission {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function userCanSeeMinorVersions(array $user = null) {
|
public function userCanSeeMinorVersions(array $user = null) {
|
||||||
|
if ($this->problem->info['type'] == 'remote') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (isSuperUser($user)) {
|
if (isSuperUser($user)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -414,10 +418,6 @@ class UOJSubmission {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function userCanRejudge(array $user = null) {
|
public function userCanRejudge(array $user = null) {
|
||||||
if ($this->problem->info['type'] == 'remote') {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isSuperUser($user)) {
|
if (isSuperUser($user)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user