Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author bhaldie

    (@bhaldie)

    can you tell me the setting you have for the files giving you the issues, for example hidden or Public etc.

    Thread Starter Adam Korte

    (@tensec10)

    The settings are
    – Public
    – Published
    – downloadable by non members (checked)

    Plugin Author bhaldie

    (@bhaldie)

    does preview work on the selected files.

    Thread Starter Adam Korte

    (@tensec10)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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.

    Thread Starter Adam Korte

    (@tensec10)

    It seems if there is more than 1 contributor, including a second admin, the download is not possible.

    Thread Starter Adam Korte

    (@tensec10)

    Thanks a lot.

    Plugin Author bhaldie

    (@bhaldie)

    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; }
        }
    }

    Thread Starter Adam Korte

    (@tensec10)

    Will give it a shot.

    Thread Starter Adam Korte

    (@tensec10)

    That seems to have fixed it! Thanks!!!

    Plugin Author bhaldie

    (@bhaldie)

    I will add this fix to the next version of mDocs, so you won’t have to keep editing the file on future releases ??

    Thread Starter Adam Korte

    (@tensec10)

    greatly appreciated!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Not Authorized to View File’ is closed to new replies.