I updated this weekend and found that the file download stopped working for all users except admins. The files affected are those for which permissions are required (Subscriber and above).
I’ve made a workaround to get it working for my site at http://sptr.net. In classes/Item.php
, within function CurUserCanAccess($for_tpl=false, $user = null)
, above the loop that checks user roles, you have to populate the roles array by calling get_role_caps()
, thus:
if(empty($frs)) return true; // item is for everyone!
$user->get_role_caps();
foreach($user->roles as $ur) { // check user roles against item roles
if(in_array($ur, $frs))
return true;
}
Fabi, check it out and see if this is OK? Thanks.