User role editor – Add download files capability

Since you’re just checking to see if they are a logged in use, you can just use the is_user_logged_in() function to check if they are logged in and if so, display the download link, if not, don’t display the download link.