We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37423
    • 5 Posts
    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.]
      • 37423
      • 5 Posts
      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);