mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 07:11:52 +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
|
||||
];
|
||||
|
||||
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;
|
||||
}
|
||||
if ($this->progress() == CONTEST_NOT_STARTED) {
|
||||
|
Loading…
Reference in New Issue
Block a user