fix colors of shifts for admins

This commit is contained in:
Xu 2024-04-14 20:56:41 +02:00 committed by Igor Scheller
parent 8f6bd547d3
commit d0388e8344
1 changed files with 10 additions and 1 deletions

View File

@ -170,6 +170,15 @@ class ShiftCalendarShiftRenderer
$angeltype, $angeltype,
$shift_entries $shift_entries
); );
$shift_can_signup = Shift_signup_allowed_angel(
$user,
$shift,
$angeltype,
null,
null,
$angeltype,
$shift_entries
);
$freeEntriesCount = $shift_signup_state->getFreeEntries(); $freeEntriesCount = $shift_signup_state->getFreeEntries();
$inner_text = _e('%d helper needed', '%d helpers needed', $freeEntriesCount, [$freeEntriesCount]); $inner_text = _e('%d helper needed', '%d helpers needed', $freeEntriesCount, [$freeEntriesCount]);
@ -216,7 +225,7 @@ class ShiftCalendarShiftRenderer
$shifts_row .= join(', ', $entry_list); $shifts_row .= join(', ', $entry_list);
$shifts_row .= '</li>'; $shifts_row .= '</li>';
return [ return [
$shift_signup_state, $shift_can_signup,
$shifts_row, $shifts_row,
]; ];
} }