artfulrobot / uk.artfulrobot.civicrm.gocardless

A CiviCRM extension providing GoCardless integration to handle UK Direct Debits.
GNU Affero General Public License v3.0
5 stars 18 forks source link

Permissions issue #39

Closed takkaria closed 6 years ago

takkaria commented 6 years ago

I've been testing this for my organisation's Civi install using the test mode. It all seems OK from a user-facing angle. But looking at the GoCardless developer console the webhook history shows 200 OK responses from Civi with the a response body containing the following:

 <span class="status-fatal">Sorry, due to an error, we are unable to fulfill your request
at the moment. You may want to contact your administrator or service provider with
more details about what action you were performing when this occurred.</span>
    <div class="crm-section crm-error-message">You do not have permission to access this page.</div>

The site in question is running Civi on top of WordPress, not Drupal. I'm just wondering whether anyone has any advice on what permissions I need to grant to who to get this working. (If this is a consulting question, I will check with my org if we have the cash to pay to get this working.)

artfulrobot commented 6 years ago

Hi Takkaria, Can you access https://yoursite.org/?page=CiviCRM&q=civicrm/gocardless/webhook or do you see the error too?

takkaria commented 6 years ago

I couldn't - but that prompted me to go off and research the permissions system. It turned out I didn't have the 'anonymous_user' role set up – someone maybe deleted it at some point in the past. Once I got that user set up and gave it the right permission it worked fine. Thanks for the prompt!

artfulrobot commented 6 years ago

Great, thanks for feeding back and closing the issue.