Request: accessCheck bool in public functions

Created on 4 March 2021, about 4 years ago
Updated 27 February 2025, about 1 month ago

Problem/Motivation

I would like this service to also check for nodes where i don't have access to. The use case is that there are scenario's where a user does not have access to all 'underlying' nodes but should still be able to read/update/delete the parent node.

So, i would like to propose that the referentialEntityQuery function accepts a new parameter (bool). This bool can be named 'checkAccess'.

In case of true

$query->condition($or_group)
$query->condition($or_group)
    ->accessCheck(FALSE);

Public functions would then also need to be altered:

  • public function hasDependents(EntityInterface $entity, [$checkAccess]);
  • public function getDependentEntities(EntityInterface $entity, [$checkAccess]);
  • public function getDependentEntityIds(EntityInterface $entity, [$checkAccess]);

Wondering if this is a valid use case for the maintainers of this module.

✨ Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Marceldeb

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024