Rainer Wittmann

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
in reply to: Role based restriction #78892

Rainer Wittmann
Participant

I think I have found the solution:


            $package_role = maybe_unserialize(get_post_meta(get_the_ID(), '__wpdm_access', true));
            if(is_array($package_role) && !in_array('guest', $package_role) && !in_array($role, $package_role)) {
                continue;
             }

in wpdm-archive-page.php was commented. So I added the code and now it seems to be ok.

in reply to: Role based restriction #78890

Rainer Wittmann
Participant

Hello,

same problem here. The method you show in your attachment does not match for me neither.

Rainer

Viewing 2 posts - 1 through 2 (of 2 total)