BISERVER-10090 Any user can Download files from the repository, they just need read permission


Adding defensive code