Closes #1133: Security flaw in download action

- edited authorized_to_download? method in ResultController
Merge pull request #1137 from GhiGt/issue-1133

Closes #1133: Security flaw in download action