Login Popup doesn't work for private Discourse instance

Can we have a setting where the admin can choose whether to display the login modal or not (for private forums)?