Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2022 at 13:48 UTC
Updated:
2 Mar 2023 at 11:06 UTC
Jump to comment: Most recent
Comments
Comment #3
marcusml commentedI set accessCheck to TRUE for all queries except for ones in tests and update hooks.
Comment #6
berdirThanks. I think config entities don't even have an alter system, so that doesn't really do anything for them either way. And quite a few things could end up being very broken if someone would implement access checks for example for tmgmt_remote entities, but there's no practical reason to do so and explicitly setting it to TRUE is the same as in HEAD.
Merged.
Comment #7
marcusml commentedOh. DIdn't even think about that. Thanks for taking note!
Comment #9
merilainen commentedThe upgrade status module is still complaining about this in some places, but not all. A bug in https://www.drupal.org/project/upgrade_status perhaps?
EDIT: If I move the accessCheck() just before execute() and run the scan, upgrade_status is happy. Seems to be a bug.
Comment #10
google01 commentedIn the latest versions, functions continue to appear in the code without explicit accessCheck(TRUE/FALSE) to content entity queries.
For example in the function "tmgmt_entity_delete" in the code file "tmgmt.module". This case is really worrying because it causes errors in the removal of any content, leaving Drupal 10 websites completely inoperative.