Don't publish data if user is not logged in.