1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-30 18:37:03 +00:00

fix(web/contest): UOJContest::userCanView

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

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