Problem/Motivation
When a user has the role "OCI checkout", he cannot put more than one item into the cart.
Steps to reproduce
Created two users with identical settings (f-K, f-S), except one (f-S) got the role "OCI checkout" assigned. While f-K can put as many items as needed into his cart, f-S has only the last item he added to the cart left at checkout.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3198970.patch | 1.03 KB | eiriksm |
Issue fork commerce_oci_checkout-3198970
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
eiriksmSeems there was a change in a recent version of commerce that introduced this bug for us. Thanks for reporting it!
Here is a patch that I think will fix your problem
Comment #3
nofue commentedWow, you're fast. Thanks for keeping this module current.
Comment #4
nofue commentedAfter patching the module and trying to use the Validator site, the WSOD kicked in.
Inspecting the case with drush ws showed:
I added this permission to the test_user and retried.
Again the WSOD kicked in, the logs say:
Strike 1:
Path: /admin/reports/dblog. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The 'access site reports' permission is required. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 117 of /var/www/web29/htdocs/8ch/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
Strike 2:
Path: /admin/people/permissions. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The 'administer permissions' permission is required. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 117 of /var/www/web29/htdocs/8ch/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
Seems there's something odd with permissions going on.
Comment #5
eiriksmThat does not seem relevant to your wsod. Do you have some error log from your webserver instead? Like apache or nginx?
Comment #6
nofue commentedAfter re-patching all systems go … Great :)
Comment #7
nofue commentedComment #10
eiriksmThanks again, merged the fix.
Will do a new release with the bug fixes recently fixed
Comment #11
nofue commentedWow, you were busy last night … Does this patch rely to
https://www.drupal.org/project/commerce_oci_checkout/issues/3199524
as well?