diff --git a/app/AdminModule/ProgramModule/Components/ProgramAttendeesGridControl.php b/app/AdminModule/ProgramModule/Components/ProgramAttendeesGridControl.php index e99197bab..d89993b56 100644 --- a/app/AdminModule/ProgramModule/Components/ProgramAttendeesGridControl.php +++ b/app/AdminModule/ProgramModule/Components/ProgramAttendeesGridControl.php @@ -114,7 +114,7 @@ public function createComponentProgramAttendeesGrid(string $name): void $grid->setTranslator($this->translator); - $qb = $this->userRepository->blockAllowedQuery($program->getBlock(), $registrationBeforePaymentAllowed) + $qb = $this->userRepository->blockAllowedQuery($program->getBlock(), ! $registrationBeforePaymentAllowed) ->leftJoin('u.programApplications', 'pa', 'WITH', 'pa.program = :program') ->setParameter('program', $program);