checking permissions in Preorder/Index

This commit is contained in:
Frank Schubert
2022-11-22 17:06:48 +01:00
parent 5531b69f65
commit 520e68b44b
8 changed files with 54 additions and 53 deletions

View File

@@ -89,7 +89,6 @@ class NetworkAddressModel {
$where = self::getSqlFilter($filter);
$sql = "SELECT * FROM NetworkAddress WHERE $where ORDER BY `type`";
mfLoghandler::singleton()->debug($sql);
$res = $db->query($sql);
//$res = $db->select("NetworkAddress", "*", "$where ORDER BY `type`");
if($db->num_rows($res)) {
@@ -137,24 +136,6 @@ class NetworkAddressModel {
}
if(is_array($filter['addresstype']) && count($filter['addresstype'])) {
/*$at = $filter['addresstype'];
$in = [];
foreach(TT_ROLES as $role) {
if(in_array($role, $at)) {
$role = $db->escape($role);
$in[] = "NetworkAddress.type = '$role'";
}
}
$or = "";
if(count($in)) {
$or = implode(" OR ", $in);
$where .= " AND ( $or )";
}*/
}
//var_dump($filter, $where);exit;
return $where;