From e1882ee6d2a78506abfd371ba6e0d592ac487181 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 21 Oct 2024 12:21:45 -0700 Subject: [PATCH] Add comment --- app/Http/Requests/StoreAssetRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Requests/StoreAssetRequest.php b/app/Http/Requests/StoreAssetRequest.php index d3e1eced2..fb7469ac8 100644 --- a/app/Http/Requests/StoreAssetRequest.php +++ b/app/Http/Requests/StoreAssetRequest.php @@ -29,6 +29,7 @@ class StoreAssetRequest extends ImageUploadRequest // Guard against users passing in an array for company_id instead of an integer. // If the company_id is not an integer then we simply use what was // provided to be caught by model level validation later. + // The use of is_numeric accounts for 1 and '1'. $idForCurrentUser = is_numeric($this->company_id) ? Company::getIdForCurrentUser($this->company_id) : $this->company_id;