Draft: task: #3639234 Add checkout and update_cart order operations

"update" on orders and order items is now the admin edit only, granted by permissions. commerce_cart grants customers "update_cart" on their own draft carts and cart items instead, so the admin route check and the route.name cache context are removed. commerce_checkout grants "checkout" with the conditions of CheckoutController::checkAccess(), which is removed; the checkout and payment return/cancel routes use _entity_access: 'commerce_order.checkout'.

Behavior changes:

  • Users with "administer commerce_order" now pass "checkout" and "update_cart" on any order (previously only the order's customer could access its checkout).
  • Code checking "update" access for customers on carts or cart items (e.g. payment gateway routes requiring commerce_order.update) must check "update_cart" or "checkout".
  • Customers can no longer modify carts through core JSON:API or REST.

Closes #3639234

Merge request reports

Loading
Loading