diff --git a/app/WebModule/components/ProgramsContentControl.php b/app/WebModule/components/ProgramsContentControl.php index b530f1bf0..37d7f5a25 100644 --- a/app/WebModule/components/ProgramsContentControl.php +++ b/app/WebModule/components/ProgramsContentControl.php @@ -66,6 +66,8 @@ public function render($content) $template->guestRole = $user->isInRole($this->roleRepository->findBySystemName(Role::GUEST)->getName()); $template->userHasPermission = $user->isAllowed(Resource::PROGRAM, Permission::CHOOSE_PROGRAMS); + $template->userWaitingForPayment = !$this->settingsRepository->getValue(Settings::IS_ALLOWED_REGISTER_PROGRAMS_BEFORE_PAYMENT) + && $this->userRepository->findById($user->getId())->getWaitingForPaymentApplications()->count() > 0; $template->render(); } diff --git a/app/WebModule/components/templates/programs_content.latte b/app/WebModule/components/templates/programs_content.latte index 54eba3ee0..4fb0f668f 100644 --- a/app/WebModule/components/templates/programs_content.latte +++ b/app/WebModule/components/templates/programs_content.latte @@ -36,6 +36,10 @@