Added permission checks for Buildings and terminations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user