mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 15:28:41 +00:00
fix(web/contest): UOJContest::userCanView
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
70e3fbb93e
commit
20c0ddd958
@ -303,7 +303,7 @@ class UOJContest {
|
||||
];
|
||||
|
||||
if ($this->userCanManage($user)) {
|
||||
if ($this->userHasRegistered($user) && $this->progress() == CONTEST_IN_PROGRESS) {
|
||||
if ($this->userHasRegistered($user) && $this->progress() == CONTEST_IN_PROGRESS && !$this->userHasMarkedParticipated($user)) {
|
||||
$cfg['ensure'] && redirectTo($this->getUri('/confirm'));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user