Problem/Motivation
Node grants gets the account from the query's "account" metadata. Entity API's query access alters hardcode the account to the current user.
Steps to reproduce
Proposed resolution
Let's mimick the node grants system's way of retrieving the account.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork entity-3621685
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
andyf commentedAppreciate there might be a minor quibble over whether
?: NULLis needed, but figured I'd put it in to perfectly match the behavior of node grants, ¯\_(ツ)_/¯.Comment #4
baysaa commentedSimple change makes perfect sense