Issue #3348096: Fix Entity queries must explicitly set whether the query should be access checked or not in Diff
Closes #3348096