Minor fix to whitelist user check.