From 99bdeb375e602ace4053db9b0a3d483a09fe3188 Mon Sep 17 00:00:00 2001 From: Barry O'Donovan Date: Wed, 14 Jul 2021 12:23:27 +0100 Subject: [PATCH] live fix --- app/Http/Middleware/ApiMaybeAuthenticate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Middleware/ApiMaybeAuthenticate.php b/app/Http/Middleware/ApiMaybeAuthenticate.php index a97046080..22eaf00e2 100644 --- a/app/Http/Middleware/ApiMaybeAuthenticate.php +++ b/app/Http/Middleware/ApiMaybeAuthenticate.php @@ -104,9 +104,9 @@ public function handle( Request $r, Closure $next ) } // Check if default customer is disabled - if( Auth::user()->customer()->active()->notDeleted()->doesntExist() ){ - return response( ucfirst( config( 'ixp_fe.lang.customer.one' ) ) . ' of the user is disabled', 403 ); - } + #if( Auth::user()->customer()->active()->notDeleted()->doesntExist() ){ + # return response( ucfirst( config( 'ixp_fe.lang.customer.one' ) ) . ' of the user is disabled', 403 ); + #} return $next( $r ); }