"Own Angeltypes" filter: only select restricted type if already confirmed

main
Igor Scheller 3 years ago committed by msquare
parent ff8adafd33
commit 950a865c0c

@ -195,7 +195,12 @@ function view_user_shifts()
$rooms = load_rooms(); $rooms = load_rooms();
$types = load_types(); $types = load_types();
$ownTypes = []; $ownTypes = [];
foreach (UserAngelTypes_by_User($user->id, true) as $type) { foreach (UserAngelTypes_by_User($user->id, true) as $type) {
if (!$type['confirm_user_id'] && $type['restricted']) {
continue;
}
$ownTypes[] = (int)$type['angeltype_id']; $ownTypes[] = (int)$type['angeltype_id'];
} }

Loading…
Cancel
Save