fix(contest/problem): UOJProblem::additionalSubmissionComponentsCannotBeSeenByUser()

This commit is contained in:
Baoshuo Ren 2023-02-07 19:43:24 +08:00
parent 986a5e20bc
commit acfcfd1a74
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -645,7 +645,7 @@ class UOJProblem {
foreach ($this->findInContests() as $cp) {
if ($cp->contest->userHasRegistered($user) && $cp->contest->progress() == CONTEST_IN_PROGRESS) {
if ($submission->userIsSubmitter($user)) {
if ($cp->contest->getJudgeTypeInContest() == 'no-details') {
if ($cp->getJudgeTypeInContest() == 'no-details') {
return ['low_level_details'];
} else {
return [];