Fixed an issue where an anonymous user couldn't download files in
dataset of a published collection.