pipeworker only sees assigned buildings in workflow
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user