From d251b4c7f7ac45b279d9a0a63d8bb9270133ef2e Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 25 Sep 2023 21:36:10 +0200 Subject: [PATCH] Shifts: Fix sign up text when self sign up is disallowed --- includes/view/ShiftCalendarShiftRenderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 3ab89147..5ea1515d 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -192,8 +192,8 @@ class ShiftCalendarShiftRenderer // No link and add a text hint, when the shift ended ShiftSignupStatus::NOT_ARRIVED => $inner_text . ' (' . __('please arrive for signup') . ')', ShiftSignupStatus::NOT_YET => $inner_text . ' (' . __('not yet') . ')', - ShiftSignupStatus::ANGELTYPE => $angeltype->restricted - // User has to be confirmed on the angeltype first + ShiftSignupStatus::ANGELTYPE => $angeltype->restricted || !$angeltype->shift_self_signup + // User has to be confirmed on the angeltype first or can't sign up by themselves ? $inner_text . icon('mortarboard-fill') // Add link to join the angeltype first : $inner_text . '
'