Ctrl K
ComunidadGuías…

changelog/release-6-4-1-1/2021-05-10-validate-order-create-discount-privilege-and-generally-in-proxy-endpoints.md

Rama trunk · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
---
title: validate order create discount privilege and generally in proxy endpoints
issue: NEXT-15171
author: d.neustadt
author_email: d.neustadt@shopware.com 
author_github: dneustadt
---
# Core
* Added `AdminSalesChannelApiSource` to pass original context to `AclWriteValidator`. Fixes an issue where priviliges would not be validated as a new `SalesChannelContext` is created in `SalesChannelProxyController` which would lead to the context source not being an instance of `AdminApiSource`, ultimately circumventing the validation.
* Added `CommandAclValidationEvent` to dispatch acl commands for additional validation
* Added `CreditOrderLineItemListener` to check for `order:create:discount` on acl write command of credit order line items