Problem/Motivation

Installed the module via `composer` then enabled via UI (Extend). When I tried to add translations for certain content type, I got this error :

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of core\lib\Drupal\Core\Entity\Query\Sql\Query.php).

Steps to reproduce

Proposed resolution

Apparently the module "does not call accessCheck() on the query object, which is now mandatory".

Remaining tasks

User interface changes

API changes

Data model changes

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

cestmoi created an issue. See original summary.

Tyapchyc made their first commit to this issue’s fork.

tyapchyc’s picture

Status: Active » Needs review

Added access check to query.

cestmoi’s picture

Status: Needs review » Active

Thank you this seems to have solved it. I tested it with no more issues.

jayprakash01 made their first commit to this issue’s fork.

  • jayprakash01 committed e2cc5c7c on 1.0.x
    Issue #3407784 by tyapchyc: query should be access checked.
    
jayprakash01’s picture

Version: 1.1.0 » 1.2.0
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.