mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 21:58:41 +00:00
fix(web/contest): manager register contest
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d84c21bf68
commit
c93e5d3c46
@ -302,7 +302,12 @@ class UOJContest {
|
|||||||
'check-register' => false
|
'check-register' => false
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($this->userCanManage($user) && !$this->userHasRegistered($user)) {
|
if ($this->userCanManage($user)) {
|
||||||
|
if ($this->userHasRegistered($user) && $this->progress() == CONTEST_IN_PROGRESS) {
|
||||||
|
$cfg['ensure'] && redirectTo($this->getUri('/confirm'));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ($this->progress() == CONTEST_NOT_STARTED) {
|
if ($this->progress() == CONTEST_NOT_STARTED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user