Check the hook entity access.