publishIfAuthenticated() does not appear to work as intended as it disables publishing even when authenticated.