|
|
@@ -29,6 +29,7 @@ class LocationHelper {
|
|
|
|
|
|
$failed_only = $options["failed_only"] ?? false;
|
|
|
$untested_only = $options["untested_only"] ?? false;
|
|
|
+ $user = $options["user"] ?? null;
|
|
|
|
|
|
$location = reset($locations);
|
|
|
|
|
|
@@ -54,6 +55,10 @@ class LocationHelper {
|
|
|
"location_id" => array_column($locations, "id")
|
|
|
];
|
|
|
|
|
|
+ if($user && $user->level <= User::LEVEL_CUSTOMER) {
|
|
|
+ $nvp["status"] = Test::STATUS_COMPLETED;
|
|
|
+ }
|
|
|
+
|
|
|
if($min_date && $max_date) {
|
|
|
if(preg_match(self::DATE_FORMAT, $min_date) && preg_match(self::DATE_FORMAT, $max_date)) {
|
|
|
$min_dts = $min_date;
|