I'm working on a site that uses a third party authentication system. When a user authenticates with the third party, they are not logged into WordPress so any checks with the function
is_user_logged_in() will fail. If you could add a filter to the logged in check, that would allow myself and others to determine if a person not logged into WordPress is allowed to download a protected file.
I've already made this change on my copy and all you would need to do is replace the following code in the files /download-manager.php, /process.php, and /download.php:
With this code:
$user_needs_to_login = $data['access']=='member'&&!is_user_logged_in(); $user_needs_to_login = apply_filters( 'dm_user_needs_to_login', $user_needs_to_login ); if($user_needs_to_login)
If you could make that change, that would help me out a ton.