diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 8d6f17eb..4a539c16 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -195,7 +195,12 @@ function view_user_shifts() $rooms = load_rooms(); $types = load_types(); $ownTypes = []; + foreach (UserAngelTypes_by_User($user->id, true) as $type) { + if (!$type['confirm_user_id'] && $type['restricted']) { + continue; + } + $ownTypes[] = (int)$type['angeltype_id']; }