Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thezochko opened this issue Sep 13, 2024 · 0 comments
Open

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

thezochko opened this issue Sep 13, 2024 · 0 comments

Comments

@thezochko
Copy link

thezochko commented Sep 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant