diff --git a/src/static/riot/competitions/detail/_tabs.tag b/src/static/riot/competitions/detail/_tabs.tag index 57ceacb71..09647588c 100644 --- a/src/static/riot/competitions/detail/_tabs.tag +++ b/src/static/riot/competitions/detail/_tabs.tag @@ -69,7 +69,7 @@ - + No Files Available Yet @@ -233,20 +233,20 @@ self.competition.files.push(scoring_program) } }) - _.forEach(phase.tasks, task => { - _.forEach(task.solutions, solution => { - self.competition.files.push({ - key: solution.data, - name: solution.name, - file_size: solution.size, - phase: phase.name, - task: task.name, - type: 'Solution' - }) - }) - }) // Need code for public_data and starting_kit at phase level if(self.competition.participant_status === 'approved'){ + _.forEach(phase.tasks, task => { + _.forEach(task.solutions, solution => { + self.competition.files.push({ + key: solution.data, + name: solution.name, + file_size: solution.size, + phase: phase.name, + task: task.name, + type: 'Solution' + }) + }) + }) if (phase.starting_kit != null){ self.competition.files.push({ key: phase.starting_kit.key,