We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2478c commit 99b2094Copy full SHA for 99b2094
webapp/src/Controller/Team/MiscController.php
@@ -105,9 +105,14 @@ public function homeAction(Request $request): Response
105
->setParameter('contest', $contest)
106
->setParameter('team', $team)
107
->addOrderBy('c.submittime', 'DESC')
108
- ->addOrderBy('c.clarid', 'DESC')
109
- ->getQuery()
110
- ->getResult();
+ ->addOrderBy('c.clarid', 'DESC');
+ if (!$this->dj->checkrole('jury')) {
+ $qb->andWhere('c.submittime <= :time')
111
+ ->setparameter('time', time());
112
+ }
113
+
114
+ /** @var Clarification[] $clarifications */
115
+ $clarifications = $qb->getQuery()->getResult();
116
117
/** @var Clarification[] $clarificationRequests */
118
$clarificationRequests = $this->em->createQueryBuilder()
0 commit comments