A possible fix for users that are logged in so they can see public layers.