Skip to content

Commit 86f5613

Browse files
joachim-nbojanz
authored andcommitted
Issue #2911542 by joachim, mglaman, bojanz: "Add payment" and "Add order" routes need to use _entity_create_any_access, not _entity_create_access
1 parent 0b5a3fb commit 86f5613

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/order/commerce_order.routing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ entity.commerce_order.add_page:
1212
_form: '\Drupal\commerce_order\Form\OrderAddForm'
1313
_title: 'Create a new order'
1414
requirements:
15-
_entity_create_access: 'commerce_order'
15+
_entity_create_any_access: 'commerce_order'
1616

1717
entity.commerce_order.reassign_form:
1818
path: '/admin/commerce/orders/{commerce_order}/reassign'

modules/payment/commerce_payment.routing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ entity.commerce_payment.add_form:
1616
commerce_order:
1717
type: 'entity:commerce_order'
1818
requirements:
19-
_entity_create_access: 'commerce_payment'
19+
_entity_create_any_access: 'commerce_payment'
2020

2121
entity.commerce_payment.operation_form:
2222
path: '/admin/commerce/orders/{commerce_order}/payments/{commerce_payment}/operation/{operation}'

0 commit comments

Comments
 (0)