Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 314003

Grant query level access to own unpublished nodes

$
0
0

Problem/Motivation

Currently "view own unpublished content" access is only checked and grants access a user to its own content when ->access('view') method is called on an already loaded Node object by node id or via loadMultiple().
However, when Node ids are collected vua an entity query or database query with node_access tag in place, unpublished contents by the (current) user are not returned.

E.g.:

    $result = \Drupal::entityQuery('node')
      ->accessCheck(TRUE)
      ->execute();

This leads to interesting and long term problematic workarounds both in Core and in contrib space:

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 314003

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>