Merge branch 'fronkdev' into 'master'
preorderaddressreporting user see all visibilites in AddressAPI See merge request fronk/thetool!758
This commit is contained in:
@@ -389,7 +389,9 @@ class AddressdbApicontroller extends mfBaseApicontroller {
|
||||
if(count($this->filter_salescluster_ids)) {
|
||||
$where .= " AND netzgebiet_id IN (" . implode(",", $this->filter_salescluster_ids) . ")";
|
||||
}
|
||||
$where .= " AND Hausnummer.visibility='public'";
|
||||
if(!$this->me->is("preorderaddressreporting")) {
|
||||
$where .= " AND Hausnummer.visibility='public'";
|
||||
}
|
||||
|
||||
$sql = AddressDB::$wohneinheit_query;
|
||||
$sql .= "\n WHERE $where AND ((" . implode(" OR ", $ort_search) . ") OR (" . implode(" OR ", $strasse_search) . ") OR (" . implode(" OR ", $plz_search) . ") OR (" . implode(" OR ", $hausnummer_search) . ")) ORDER BY strasse, LENGTH(hausnummer), hausnummer, LENGTH(`Wohneinheit`.tuer),`Wohneinheit`.tuer, zusatz, LENGTH(num), num";
|
||||
@@ -681,7 +683,9 @@ class AddressdbApicontroller extends mfBaseApicontroller {
|
||||
if($search_cluster_id) {
|
||||
$where .= " AND Netzgebiet.extref='$search_cluster_id'";
|
||||
}
|
||||
$where .= " AND Hausnummer.visibility='public'";
|
||||
if(!$this->me->is("preorderaddressreporting")) {
|
||||
$where .= " AND Hausnummer.visibility='public'";
|
||||
}
|
||||
//echo $where;
|
||||
//var_dump($this->filter_salescluster_ids);exit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user