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

Command icon 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

andyf created an issue. See original summary.

andyf’s picture

Status: Active » Needs review

Appreciate there might be a minor quibble over whether ?: NULL is needed, but figured I'd put it in to perfectly match the behavior of node grants, ¯\_(ツ)_/¯.

baysaa’s picture

Status: Needs review » Reviewed & tested by the community

Simple change makes perfect sense