Browse Source

plan不能查看别的公司下的

kely 7 months ago
parent
commit
5abf4e0aea
1 changed files with 1 additions and 1 deletions
  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);
     }