-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Not permitted when trying to update a subscription [3.x]: #3155
Comments
One shouldn't have to create permissions for a customer to edit their custom fields. Looking into it now. |
We have fixed this for the next release of commerce; a customer can now update (switch, cancel, reactivate etc) a subscription if they are the owner of the subscription and it’s a front-end request. Otherwise, the normal permissions will apply. To get the fix early, change your "require": {
"craftcms/commerce": "dev-develop#190463d8ce9b46b602acaacf814f37fb624fda2f as 4.2.10",
"...": "..."
} Then run |
Version Thanks! |
Thanks @lukeholder and @nfourtythree |
This also closes this discussion: #3105 And my PR for fixing the docs, since I was told this was expected behavior. craftcms/docs#490 |
What happened?
Description
When a user tries to update a subscription form on their front-end, we are seeing the following error:
User Not permitted
At the moment this is implemented on the
_includes/sprig/subscriptions/sprig-manage-addresses.twig
partial.But essentially it uses the following Craft Commerce Subscription code and subscriptions/save controller.
This action does work if I am logged in as an admin user. But we need this functionality for customer users.
Craft CMS version
Craft Pro 3.8.7
Craft Commerce version
3.4.20.1
PHP version
8.0.28
Operating system and version
No response
Database type and version
MariaDB 10.4.28
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: