contentacms / contenta_jsonapi

Contenta CMS, the decoupled Drupal
http://www.contentacms.org/
GNU General Public License v2.0
328 stars 104 forks source link

Adding accessCheck method in Drupal queries. #423

Closed fadonascimento closed 11 months ago

fadonascimento commented 11 months ago

[Drupal 10 support] https://github.com/contentacms/contenta_jsonapi/issues/421

Task: https://github.com/contentacms/contenta_jsonapi/issues/421

Fix queries to adding check access it will be removed in Drupal 10

Notes

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.

fadonascimento commented 11 months ago

FIY: @e0ipso

e0ipso commented 11 months ago

Thanks for the contribution!