src/Controller/EntityResource.php | 2 +- src/IncludeResolver.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controller/EntityResource.php b/src/Controller/EntityResource.php index 880f23c..f27feec 100644 --- a/src/Controller/EntityResource.php +++ b/src/Controller/EntityResource.php @@ -330,7 +330,7 @@ class EntityResource { } catch (\LogicException $e) { // Ensure good DX when an entity query involves a config entity type. - // For example: getting users with a particular role, whic is a config + // For example: getting users with a particular role, which is a config // entity type: https://www.drupal.org/project/jsonapi/issues/2959445. // @todo Remove the message parsing in https://www.drupal.org/project/drupal/issues/3028967. if (strpos($e->getMessage(), 'Getting the base fields is not supported for entity type') === 0) { diff --git a/src/IncludeResolver.php b/src/IncludeResolver.php index 4d5664f..027b737 100644 --- a/src/IncludeResolver.php +++ b/src/IncludeResolver.php @@ -118,7 +118,6 @@ class IncludeResolver { continue; } $field_list = $entity->get($field_name); - // @todo: raise an omitted item to an inaccessible related field in https://www.drupal.org/project/jsonapi/issues/2956084. $field_access = $field_list->access('view', NULL, TRUE); if (!$field_access->isAllowed()) { $message = 'The current user is not allowed to view this relationship.';