File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
webapp/src/Controller/API Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -150,9 +150,9 @@ protected function getQueryBuilder(Request $request): QueryBuilder
150
150
151
151
$ specificJudgingRequested = $ request ->attributes ->has ('id ' )
152
152
|| $ request ->query ->has ('ids ' );
153
- // If we don't have correct permissions or didn't request a specific
154
- // judging (necessary for the event log), then exclude some judgings:
155
- if (!$ roleAllowsVisibility && ! $ specificJudgingRequested ) {
153
+ // Only include invalid or too late submissions if the role allows it
154
+ // and we request these specific submissions.
155
+ if (!( $ roleAllowsVisibility && $ specificJudgingRequested) ) {
156
156
$ queryBuilder
157
157
->andWhere ('s.submittime < c.endtime ' )
158
158
->andWhere ('j.valid = 1 ' );
You can’t perform that action at this time.
0 commit comments