Fix filtering on Node's Authored by field (and on other entity reference fields)

Created on 17 January 2025, 3 months ago

Problem/Motivation

See attached video.

Steps to reproduce

Proposed resolution

Override \Drupal\user\Plugin\EntityReferenceSelection\UserSelection::getReferenceableEntities() and make sure entity access check ($entity->access('view label')) is called on results before they are returned.

(Assuming that there is no efficient way to filter out users at the query level in \Drupal\user\Plugin\EntityReferenceSelection\UserSelection::buildEntityQuery()

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary mxr576 Hungary

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024