Fix needs_gauth? to check for boolean instead of 1