Added permission checks for Buildings and terminations

This commit is contained in:
Frank Schubert
2021-08-05 20:11:15 +02:00
parent 4a74e15300
commit c06bb156c7
18 changed files with 246 additions and 91 deletions

View File

@@ -95,10 +95,12 @@ class AddressModel {
}
}
$res = $db->select("Address", "*", "$where AND id NOT IN (".implode(",", $have).")");
if($db->num_rows()) {
while($data = $db->fetch_object($res)) {
$items[] = new Address($data);
if(!array_key_exists("addresstype", $filter)) {
$res = $db->select("Address", "*", "$where AND id NOT IN (".implode(",", $have).")");
if($db->num_rows()) {
while($data = $db->fetch_object($res)) {
$items[] = new Address($data);
}
}
}