3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-11 17:15:59 +00:00
Files
snipe-it/app/Http/Controllers
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
..
2024-09-17 22:16:41 +01:00
2024-10-01 14:26:32 -05:00
2024-10-14 15:14:41 +02:00
2024-08-18 04:51:36 +01:00
2024-09-19 17:01:17 +01:00
2024-07-04 22:37:58 +01:00
2024-08-07 18:04:39 +01:00
2024-07-04 22:37:58 +01:00
2024-07-04 22:37:58 +01:00
2024-10-02 15:48:35 +01:00
2024-07-08 17:41:20 +01:00