diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index ed9a6cb4..e183b2aa 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -170,6 +170,15 @@ class ShiftCalendarShiftRenderer $angeltype, $shift_entries ); + $shift_can_signup = Shift_signup_allowed_angel( + $user, + $shift, + $angeltype, + null, + null, + $angeltype, + $shift_entries + ); $freeEntriesCount = $shift_signup_state->getFreeEntries(); $inner_text = _e('%d helper needed', '%d helpers needed', $freeEntriesCount, [$freeEntriesCount]); @@ -216,7 +225,7 @@ class ShiftCalendarShiftRenderer $shifts_row .= join(', ', $entry_list); $shifts_row .= ''; return [ - $shift_signup_state, + $shift_can_signup, $shifts_row, ]; }