Added code and migration to restrict download access to search results.