mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
fix(contest/problem): UOJProblem::additionalSubmissionComponentsCannotBeSeenByUser()
This commit is contained in:
parent
986a5e20bc
commit
acfcfd1a74
@ -645,7 +645,7 @@ class UOJProblem {
|
|||||||
foreach ($this->findInContests() as $cp) {
|
foreach ($this->findInContests() as $cp) {
|
||||||
if ($cp->contest->userHasRegistered($user) && $cp->contest->progress() == CONTEST_IN_PROGRESS) {
|
if ($cp->contest->userHasRegistered($user) && $cp->contest->progress() == CONTEST_IN_PROGRESS) {
|
||||||
if ($submission->userIsSubmitter($user)) {
|
if ($submission->userIsSubmitter($user)) {
|
||||||
if ($cp->contest->getJudgeTypeInContest() == 'no-details') {
|
if ($cp->getJudgeTypeInContest() == 'no-details') {
|
||||||
return ['low_level_details'];
|
return ['low_level_details'];
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
Reference in New Issue
Block a user