Problem/Motivation
when running drupal 10, there is the following error where the accesscheck is not checked.
In Query.php line 141:
[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().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3392161-accessCheck-is-missing.patch | 502 bytes | szeberli |
Issue fork warmer_view_mode-3392161
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
Comment #2
szeberli commentedthe accesscheck is installed and is asked to check this
Comment #3
devkinetic commentedChange record: Access checking must be explicitly specified on content entity queries
Comment #6
sarwan_verma commentedHi devkinetic, I have fixed this issue "Drupal\Core\Entity\Query\QueryInterface::accessCheck() is missing and Replace uses of watchdog_exception() with \Drupal::logger()".created MR.
please review & retest it.
Thanks
Comment #7
devkinetic commentedI'd prefer to not bundle these changes together. The logger change should be a separate issue, and it should also use dependency injection.
Comment #8
devkinetic commented