Explorar el Código

plan不能查看别的公司下的

kely hace 7 meses
padre
commit
5abf4e0aea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/API/PlanController.php

+ 1 - 1
app/Http/Controllers/API/PlanController.php

@@ -66,7 +66,7 @@ class PlanController extends Controller
             return $emptyResponse;
         }
 
-        $plans = Plan::query()->with(['asset'])->whereIn("asset_id", $assets->toArray())->get();
+        $plans = Plan::query()->allowed()->with(['asset'])->whereIn("asset_id", $assets->toArray())->get();
 
         return PlanByAssetResource::collection($plans);
     }