summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/pages/user_shifts.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index eb74d640..c330fc45 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -371,9 +371,13 @@ function view_user_shifts() {
$_SESSION['user_shifts'] = array();
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
- );
+ ];
}
foreach (array(