Hi,
I've created a snippet that adds a user to a member group upon successful payment though paypal. Works great. However, as far as I can tell, I have to flush all permissions in the manager to get the paid content to show up for the user.
Is there a way to flush the permissions for a user via the api? I've been trying to sift through how the menu action does it but not having much luck.
Thanks.
[ed. note: georgeit last edited this post 14 years, 10 months ago.]
solved. when the user returns to the page that lists all resources they have access to, i run a snippet that contains;
$modx->user->getAttributes(array(), '', true);