can you tell me the setting you have for the files giving you the issues, for example hidden or Public etc.
The settings are
– Public
– Published
– downloadable by non members (checked)
does preview work on the selected files.
I’ve identified the issue, though am not sure how to fix. If there is a non admin contributor on the file, it prevents the download.
okay, I’ve can confirm that is the issue. I will look for a solution and get back to you as soon as I can.
It seems if there is more than 1 contributor, including a second admin, the download is not possible.
here is a hot fix if you are interested in being a tester for this issue.
Open the file mdocs-download.php goto line 50:
change this:
if($contributors != null) {
foreach($contributors as $user) {
$login_denied = true;
if($current_user->user_login == $user) $login_denied = false;
}
}
to this:
if($contributors != null && $login_denied) {
foreach($contributors as $user) {
$login_denied = true;
if($current_user->user_login == $user) { $login_denied = false; break; }
if($current_user->roles[0] == $user) { $login_denied = false; break; }
}
}
That seems to have fixed it! Thanks!!!
I will add this fix to the next version of mDocs, so you won’t have to keep editing the file on future releases 🙂