pipeworker only sees assigned buildings in workflow

This commit is contained in:
Frank Schubert
2021-09-02 21:01:45 +02:00
parent 06899abba2
commit d10c3572cb
3 changed files with 13 additions and 1 deletions

View File

@@ -124,6 +124,13 @@ class BuildingModel {
}
}
if(array_key_exists("pipeworker_id", $filter)) {
$pipeworker_id = $filter['pipeworker_id'];
if(is_numeric($pipeworker_id)) {
$where .= " AND Building.pipeworker_id=$pipeworker_id";
}
}
if(is_array($filter['type']) && count($filter['type'])) {
$ot = $filter['type'];
$in = [];