Shifts: Fix sign up text when self sign up is disallowed

This commit is contained in:
Igor Scheller 2023-09-25 21:36:10 +02:00 committed by Michael Weimann
parent 7dbc0481b9
commit d251b4c7f7
1 changed files with 2 additions and 2 deletions

View File

@ -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 . '<br />'