fix(web/contest): UOJContest::userCanView
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-07 07:33:11 +08:00
parent 70e3fbb93e
commit 20c0ddd958
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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;
}