Members on level 0 have options to buy different products which have different ccaps. Once they buy the product using a paypal button created using the level 1 code generator with a ccap, they get upgraded to level 1. Then they are signed up to an aweber list through API and should have access ONLY to the ccap product they paid for. The product access page has level 1 and ccap in the page level restrictions.
Should that page have level 1 as a restriction? not sure…
Right now the content they have available after paying pops up a button only paid buyers can see but this code is letting level 1 persons access all ccap pages.
Here is the short code I am using for the buttons:
Button for product1 more info
[s2If current_user_is(s2member_level0)]
[/s2If]
Button for product 1 with ccap 1
[s2If current_user_is(s2member_level1)] AND current_user_can(access_s2member_ccap_1)
[/s2If]
I have uploaded an image file showing the S2 code since we can’t see it very well if written directly here.