Problem/Motivation
Having the following error after finishing the installation.
Error message
Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().
Proposed resolution
Have queries over entities changed in the Bootstrap Layout Builder module
With basic accessCheck(TRUE) or pass the needed access check for admins or selected user roles and permissions.
Would you suggest changing access check to accessCheck(FALSE) if needed?
Access checking must be explicitly specified on content entity queries
#2785449: It's too easy to write entity queries with access checks that must not have them
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ✅ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Code review from Bootstrap Layout Builder team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release bootstrap_layout_builder-2.1.2
User interface changes
- N/A
API changes
- N/A
Data model changes
- Issue #3347902: Fixed Entity queries must explicitly set whether the query should be access checked or not in Bootstrap Layout Builder
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3347902-4.patch | 3.29 KB | rajab natshah |
Issue fork bootstrap_layout_builder-3347902
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
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #6
rajab natshahI went with
->accessCheck(TRUE)...But if no access restriction on the query then could be changed to
->accessCheck(FALSE)What do suggest on this case?
Comment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #13
rajab natshahComment #14
rajab natshah✅ Released bootstrap_layout_builder-2.1.2