Problem/Motivation
Scanning the module with the Upgrade status module gives the following warning.
Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked.
on line 1498 in web/modules/contrib/charts/src/Element/BaseSettings.php
Steps to reproduce
Scan the module with the upgrade status module.
Proposed resolution
Add access check to the entity query.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | add-access-check-3357894-2.patch | 524 bytes | hmdnawaz |
Issue fork charts-3357894
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
hmdnawaz commentedComment #4
hmdnawaz commentedComment #7
andileco commentedThank you!