Fix usage of hasAuthentication() check in client build

Closes #3561504

Merge request reports

Loading