mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add CheckoutNotAllowed exception in UpdateAssetAction
This change introduces the CheckoutNotAllowed exception to the UpdateAssetAction class. It ensures that the action can handle scenarios where checking out an asset is not permitted, improving the robustness of the application.
This commit is contained in:
parent
705a852d45
commit
aeb5e90037
|
@ -3,6 +3,7 @@
|
|||
namespace App\Actions\Assets;
|
||||
|
||||
use App\Events\CheckoutableCheckedIn;
|
||||
use App\Exceptions\CheckoutNotAllowed;
|
||||
use App\Exceptions\CustomFieldPermissionException;
|
||||
use App\Http\Requests\ImageUploadRequest;
|
||||
use App\Models\Asset;
|
||||
|
@ -22,6 +23,7 @@ class UpdateAssetAction
|
|||
/**
|
||||
* @throws ValidationException
|
||||
* @throws CustomFieldPermissionException
|
||||
* @throws CheckoutNotAllowed
|
||||
*/
|
||||
public static function run(
|
||||
Asset $asset,
|
||||
|
|
Loading…
Reference in a new issue