Problem/Motivation

Part of #3619565: [meta] Move access workarounds down into query alter hooks.

For now, experimenting with how this could work and what the impact is.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3619863

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

berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs work

This works well enough for the selection plugin, but it does not work yet for the more advanced stuff that jsonapi is doing, which is specifically filters through relationships.

Not sure what to do about that. The query alter system isn't really designed to handle that, and any current query access implementation , be it entity.module or node grants rely on query alter.

It also exposes a bug in the term loadTree static caching, which doesn't vary by user.