Skip to content

Commit afdf44f

Browse files
Only display test data count for jury members.
1 parent d126671 commit afdf44f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webapp/src/Controller/API/ProblemController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ public function transformObject($object)
323323
/** @var ContestProblem $problem */
324324
$problem = $object[0];
325325
$testDataCount = (int)$object['testdatacount'];
326-
return new ContestProblemWrapper($problem, $testDataCount);
326+
if ($this->dj->checkrole('jury')) {
327+
return new ContestProblemWrapper($problem, $testDataCount);
328+
} else {
329+
return $problem;
330+
}
327331
}
328332
}

0 commit comments

Comments
 (0)