Modified to hide the download link if user doesn't have permission

fixes #29