fix middleware
This commit is contained in:
@@ -23,7 +23,7 @@ class CheckAxisTypeMiddleware
|
||||
{
|
||||
$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('ابتدا نوع محور را مشخص کنید');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user