It appears that we did not add the "access arguments" array to these entity type definitions because they use custom access callbacks, commerce_line_item_access() and commerce_payment_transaction_access() respectively. However, we still do entity access query altering for these entity types via a pass-through order access check. I have a use case in Commerce Services where I was looking for the access tag in entity info arrays to know if I should be adding a tag to indexing queries for these entity types, so it would be useful to have the access arguments even though they wouldn't directly be used by commerce_entity_access_query_alter(). The attached patch adds the arguments; it's tested working fine in my Commerce Services code.

Comments

rszrama’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.