snipe-it/app/Http
Tobias Regnery f3c4e55667 Refactor asset creation with API
Commit fb4fe3004 restored the previous behaviour to check the company_id in case of FullMultipleCompanySupport.
But after rereading the code and the laravel documentation, the check is already there where it belongs in AssetStoreRequest::prepareForValidation()
The bug is the is_int-check of the request input in prepareForValidation(). Is is of type string even if it is a numeric value, so the call to getIdForCurrentUser() never happend.
Fix this by removing the check and the now redundant call to getIdForCurrentUser().
Wrong values will get caught by the model-level validation rules.
2024-10-14 15:14:41 +02:00
..
Controllers Refactor asset creation with API 2024-10-14 15:14:41 +02:00
Middleware Fixed #15439 - check database on healthcheck 2024-10-02 15:36:01 +01:00
Requests Refactor asset creation with API 2024-10-14 15:14:41 +02:00
Traits Fixed behavior for null model numbers 2024-08-17 00:27:44 +01:00
Transformers Fixed #15651 - admin user now displaying on maintenances page 2024-10-11 11:16:24 +01:00
Kernel.php Fixed #15439 - check database on healthcheck 2024-10-02 15:36:01 +01:00