Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Your membership level does not allow you to view rest of content › Reply To: Your membership level does not allow you to view rest of content
February 28, 2010 at 3:00 am
#17526
Member
hey jan,
our code structure is like:
if($perms->is_protected_post($id))
{
......../***more code *****/.........
if($perms->is_permitted_post($id))
{
$return $content;
}
......../***more code *****/..........
}
!$perms->is_protected_post($id) is just opposite of $perms->is_protected_post($id). so
!$perms->is_protected_post($id) will always evaluate to false inside `
if($perms->is_protected_post($id)){} code block. as a result, adding that condition to $perms->is_permitted_post($id) has no effect on the code flow.
FYI in our codebase, line 683 doesn’t have the code u mentioned. which version r u using?
Thanks
~NuR