Details
Description
Update the Download Manager such that when an unauthenticated user views a download section, it display a message
- Either check whether there are hidden files and display a message indicating this
- "You must log in to view downloads in this section."
- Or see that there are no hidden files (the directory is empty) and display the current message that there are no files in this directory
When someone is viewing a directory within the Download Manager plugin and they are unauthenticated, there may be files in the directory that require them to be logged in (either based on their client group or purchase of a specific package.
So, if the user is unauthenticated and there are no files displayed in the directory, but files are assigned to the directory which are not displayed due to file permissions, display a different message, like:
"There are no downloads available in this section to guests. There may be downloads available here if you log in." with "log in" being a link to the client log in page.
Otherwise, display the current message.