drupal-graphql / graphql

GraphQL integration for Drupal 9/10
288 stars 201 forks source link

Access result from "entity_access" data producer is not added as cacheable dependency #1371

Closed dulnan closed 1 year ago

dulnan commented 1 year ago

The entity_access data producer does not set the correct cache metadata on the field context. It should pass TRUE as the third argument to access() and add the returned AccessResult as a cacheable dependency.