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 ); }