Closed (fixed)
Project:
Orejime
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2022 at 17:25 UTC
Updated:
24 Mar 2023 at 07:24 UTC
Jump to comment: Most recent
Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().
Use the 2.0.0 version of the module with Drupal 10. Go to any FO page (node or other content).
Add $query->accessCheck() in \Drupal\orejime\Services\OrejimeManager::getAllServices().
Add $query->accessCheck() in \Drupal\orejime\Form\OrejimeForm::nameAlreadyUsed().
Comments
Comment #2
mbidinger commentedComment #4
fabsgugu commentedI had seen this while analyzing one of my sites for Drupal 10.
Thanks for the issue !
Comment #6
davidiio commentedSorry for re-opening this issue but I think an ->accessCheck() is still missing in
/src/Form/OrejimeSettingsForm.php, around line 387.It prevents from opening de module configuration page.
Comment #7
fabsgugu commentedThanks,
I corrected.
Comment #8
jlarvers commentedSame problem with D 10.0.5 with version 2.0.0. No access to Drupal after module activation. Unable to remove module next: o
rejime: There is content for entity type: Orejime. <a href="/admin/modules/uninstall/entity/orejime_service">Remove orejime Entities</a>.It's good with version 2.0.x-dev