Disable another basic_auth check if basic_auth is set to false

Fix #7707

@tanghus @LukasReschke @Der-Zohan @TheBoojum @DeepDiver1975