Add snippet to require users to be logged in to download files