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.
| Comment | File | Size | Author |
|---|---|---|---|
| line_item_payment_transaction_access_arguments.patch | 1.26 KB | rszrama |
Comments
Comment #1
rszrama commentedCommitted.