feat: #3641083 Restrict uid-based order access to orders without an organization

Closes #3641083. Draft: the checkout part waits for #3639234 (!797), which moves checkout access into an entity operation. Depends on !811 (merged) (#3641080) and !810: the diff includes their commits until they are merged. Once an order has an organization, uid-based grants no longer apply: view own commerce_order in OrderAccessControlHandler and OrderQueryAccessHandler, commerce_cart's order access hook, and commerce_cart's cart query access. Orders without an organization keep today's access. Still to do after #3639234: the uid check of the checkout operation, and forbidden checkout for an unpublished organization.

Closes #3641083

Merge request reports

Loading
Loading