Skip to content

Commit

Permalink
fix: controller conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Mar 28, 2023
1 parent 1f35dbd commit 7755c7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controller/WebserviceController.php
Expand Up @@ -192,11 +192,11 @@ public function webonyxAction(
}

$configAllowIntrospection = true;
if (isset($this->config['graphql']) && isset($this->config['graphql']['allow_introspection'])) {
$configAllowIntrospection = $this->config['graphql']['allow_introspection'];
if (isset($config['graphql']) && isset($config['graphql']['allow_introspection'])) {
$configAllowIntrospection = $config['graphql']['allow_introspection'];
}

$disableIntrospection = (!$configAllowIntrospection || $configuration->getSecurityConfig()['disableIntrospection']) ?? false;
$disableIntrospection = !$configAllowIntrospection || (isset($configuration->getSecurityConfig()['disableIntrospection']) && $configuration->getSecurityConfig()['disableIntrospection']);
if ($disableIntrospection === true) {
DocumentValidator::addRule(new DisableIntrospection());
}
Expand Down

0 comments on commit 7755c7b

Please sign in to comment.