From 950a865c0c1a14094f56bc90dd17e9434443da55 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 14 Jul 2021 00:40:31 +0200 Subject: [PATCH] "Own Angeltypes" filter: only select restricted type if already confirmed --- includes/pages/user_shifts.php | 5 +++++ 1 file changed, 5 insertions(+) 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']; }