fix middleware

This commit is contained in:
2025-05-25 16:04:22 +03:30
parent 38ce1d760c
commit db33fc19f3

View File

@@ -23,7 +23,7 @@ class CheckAxisTypeMiddleware
{ {
$s = $request->route('safetyAndPrivacy'); $s = $request->route('safetyAndPrivacy');
if (($s->step == 3 || $s->step == 2) && $s->axis_type_id) if (($s->step == 3 || $s->step == 2) && is_null($s->axis_type_id))
{ {
throw new ProhibitedAction('ابتدا نوع محور را مشخص کنید'); throw new ProhibitedAction('ابتدا نوع محور را مشخص کنید');
} }