@@ -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);