Followed the instruction here https://www.drupal.org/node/2409353

Created the sponsor products then created a sponsor. Tested the link with a user in the system and I get access denied. Is there another setup step? Group membership and permissions look ok.

Comments

schiavone created an issue. See original summary.

schiavone’s picture

Title: Sponsor order link get access denied » Sponsor order link gets access denied
schiavone’s picture

The correct permission is "View any Sponsor product" so giving a role with this permission to a sponsor's account will allow them to use the order link.

Though it would make sense to automatically give permission to anyone included in the Sponsor contact field as noted by the TODO in the code. So I created a patch that will allow adding the Sponsor product to the cart if...

1. The current user is in the Sponsor contact field
2. The current user is the author of the Sponsor node
3. If the current user has the View any Sponsor product

The patch includes one other small change since it was very confusing to get directed to checkout they will now be taken to the cart where they can remove items. A user could have an extra ticket item or even an extra sponsorship item.

I've posted the patch to the cod_support module project since that's where the code is maintained.

schiavone’s picture

So we updated our camp site to 7.x-2.0 and this is still an issue. I will test this patch against the latest release and re-roll. Perhaps a maintainer can at least comment on this issue. I know everyone has moved on to D8 but...

schiavone’s picture

Version: 7.x-2.0-alpha7 » 7.x-2.0
Component: Miscellaneous » Code