feat: Apply access check for the entity query