updated more modules (including graphql with a patch)
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
commit 9c3d84fbb3e0e2a4ad99ef593b975cde7bc2547f
|
||||
Author: bach <bachir@figureslibres.io>
|
||||
Date: Mon Sep 19 15:41:32 2022 +0200
|
||||
|
||||
invalid translation language
|
||||
|
||||
bugfix
|
||||
|
||||
removed patch
|
||||
|
||||
diff --git a/src/Plugin/GraphQL/DataProducer/Entity/EntityLoad.php b/src/Plugin/GraphQL/DataProducer/Entity/EntityLoad.php
|
||||
index 867a28c..386b2b3 100644
|
||||
index 408af0af..b6f9d8d8 100644
|
||||
--- a/src/Plugin/GraphQL/DataProducer/Entity/EntityLoad.php
|
||||
+++ b/src/Plugin/GraphQL/DataProducer/Entity/EntityLoad.php
|
||||
@@ -172,8 +172,10 @@ class EntityLoad extends DataProducerPluginBase implements ContainerFactoryPlugi
|
||||
@@ -16,7 +26,7 @@ index 867a28c..386b2b3 100644
|
||||
|
||||
// Check if the passed user (or current user if none is passed) has access
|
||||
diff --git a/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadByUuid.php b/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadByUuid.php
|
||||
index 10e2d40..e4e6ed0 100644
|
||||
index a400da19..4fb1d8d7 100644
|
||||
--- a/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadByUuid.php
|
||||
+++ b/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadByUuid.php
|
||||
@@ -165,8 +165,10 @@ class EntityLoadByUuid extends DataProducerPluginBase implements ContainerFactor
|
||||
@@ -33,7 +43,7 @@ index 10e2d40..e4e6ed0 100644
|
||||
|
||||
// Check if the passed user (or current user if none is passed) has access
|
||||
diff --git a/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadMultiple.php b/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadMultiple.php
|
||||
index 2a0259c..27a19e5 100644
|
||||
index 2b456aad..92f2c898 100644
|
||||
--- a/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadMultiple.php
|
||||
+++ b/src/Plugin/GraphQL/DataProducer/Entity/EntityLoadMultiple.php
|
||||
@@ -172,8 +172,10 @@ class EntityLoadMultiple extends DataProducerPluginBase implements ContainerFact
|
||||
@@ -50,20 +60,20 @@ index 2a0259c..27a19e5 100644
|
||||
|
||||
if ($access) {
|
||||
diff --git a/src/Plugin/GraphQL/DataProducer/Entity/EntityTranslation.php b/src/Plugin/GraphQL/DataProducer/Entity/EntityTranslation.php
|
||||
index 633bdc2..3773a9b 100644
|
||||
index 1a30c65d..5d3f1268 100644
|
||||
--- a/src/Plugin/GraphQL/DataProducer/Entity/EntityTranslation.php
|
||||
+++ b/src/Plugin/GraphQL/DataProducer/Entity/EntityTranslation.php
|
||||
@@ -101,7 +101,7 @@ class EntityTranslation extends DataProducerPluginBase implements ContainerFacto
|
||||
@@ -103,7 +103,7 @@ class EntityTranslation extends DataProducerPluginBase implements ContainerFacto
|
||||
* @return \Drupal\Core\Entity\EntityInterface|null
|
||||
*/
|
||||
public function resolve(EntityInterface $entity, $language, ?bool $access, ?AccountInterface $accessUser, ?string $accessOperation) {
|
||||
public function resolve(EntityInterface $entity, $language, ?bool $access, ?AccountInterface $accessUser, ?string $accessOperation, FieldContext $context) {
|
||||
- if ($entity instanceof TranslatableInterface && $entity->isTranslatable()) {
|
||||
+ if ($entity instanceof TranslatableInterface && $entity->isTranslatable() && $entity->hasTranslation($language)) {
|
||||
$entity = $entity->getTranslation($language);
|
||||
$entity->addCacheContexts(["static:language:{$language}"]);
|
||||
// Check if the passed user (or current user if none is passed) has access
|
||||
diff --git a/src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.php b/src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.php
|
||||
index 10ea4e6..1eef22a 100644
|
||||
index e08c7bdd..46c64bbb 100644
|
||||
--- a/src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.php
|
||||
+++ b/src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.php
|
||||
@@ -126,8 +126,10 @@ class RouteEntity extends DataProducerPluginBase implements ContainerFactoryPlug
|
||||
@@ -80,7 +90,7 @@ index 10ea4e6..1eef22a 100644
|
||||
|
||||
$access = $entity->access('view', NULL, TRUE);
|
||||
diff --git a/src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php b/src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php
|
||||
index 1bcd624..8b2caf2 100644
|
||||
index 3f2229fd..b0753acf 100644
|
||||
--- a/src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php
|
||||
+++ b/src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php
|
||||
@@ -175,8 +175,10 @@ class TaxonomyLoadTree extends DataProducerPluginBase implements ContainerFactor
|
||||
|
Reference in New Issue
Block a user