Skip to content

$query->execute() needs accessCheck method defined #1

@thezochko

Description

@thezochko

HI,

following error happened for Ringsted.dk

https://ringsted.dk/da/borgerdrevne-forslag

image

The error seems to be related with the new requirement for Drupal 10.

https://www.drupal.org/node/3201242

When using entityQuery, accessCheck() needs to be called.

Since the default value before Drupal 10 would be the same as defined with TRUE.
Adding ->accessCheck(TRUE) to line 45, 159, 202 should fix the error.
https://github.com/OS2web/os2web_citizen_proposals/blob/master/os2web_citizen_proposals.module

I've already provided the code to production, but it should be included inside Master aswell.
I might fork the repo and add it, or you can just add it.
you decide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions