"Own Angeltypes" filter: only select restricted type if already confirmed
This commit is contained in:
parent
ff8adafd33
commit
950a865c0c
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue