User shift admins see free and occupied shifts by default

main
Philip Häusler 9 years ago
parent df526fa2bf
commit 723961c19e

@ -371,9 +371,13 @@ function view_user_shifts() {
$_SESSION['user_shifts'] = array(); $_SESSION['user_shifts'] = array();
if (! isset($_SESSION['user_shifts']['filled'])) { if (! isset($_SESSION['user_shifts']['filled'])) {
$_SESSION['user_shifts']['filled'] = array( // User shift admins see free and occupied shifts by default
$_SESSION['user_shifts']['filled'] = in_array('user_shifts_admin', $privileges) ? [
0,
1
] : [
0 0
); ];
} }
foreach (array( foreach (array(

Loading…
Cancel
Save