mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-03-30 04:17:02 +00:00
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…
x
Reference in New Issue
Block a user