creat and fix
This commit is contained in:
@@ -21,9 +21,9 @@ class CheckAxisTypeMiddleware
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
$s = $request->route('safetyAndPrivacy');
|
||||
$s = $request->safetyAndPrivacy;
|
||||
|
||||
if (($s->step == 3 || $s->step == 2) && is_null($s->axis_type_id))
|
||||
if (($s->step == 1 || $s->step == 2) && is_null($s->axis_type_id))
|
||||
{
|
||||
throw new ProhibitedAction('ابتدا نوع محور را مشخص کنید');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user