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:
spencerrlongg 2024-11-26 12:40:53 -06:00
parent 705a852d45
commit aeb5e90037

View file

@ -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,