The order process checks the products quantity availability of the cart to go futher.
This pull request is a proposal for an enhancement also checking the Access right of the products.
It may happen that a customer was in a customer group in which he had access to some restricted products and have perheaps already bought them in an order or already just placed them in a cart.
If the customer is no more in this group or if the products are moved to another category not accessible to this customer, the product must not be accessible in the cart/order
Addition of checkProductAccess()
addition of checkAccess_static
Adding checkAccess control in processChangeProductInCart
Checking products access while checking quantities
note, theses modification have not been unit tested
[*] FO : #1530 Enhance products check access in order process
Thanks for your contribution.
I've addapt your PR: ed25a16.