Block publications export for anonymous users.

#5531