Skip to content

Commit 689fb1a

Browse files
MAGETWO-62655: [GitHub] CLI won't work without write permissions #7933
1 parent 6919941 commit 689fb1a

File tree

1 file changed

+1
-4
lines changed
  • lib/internal/Magento/Framework/Console

1 file changed

+1
-4
lines changed

lib/internal/Magento/Framework/Console/Cli.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,11 @@ private function assertGenerationPermissions()
187187
GenerationDirectoryAccess::class,
188188
['serviceManager' => $this->serviceManager]
189189
);
190-
/** @var DeploymentConfig $deploymentConfig */
191-
$deploymentConfig = $this->objectManager->get(DeploymentConfig::class);
192190
/** @var State $state */
193191
$state = $this->objectManager->get(State::class);
194192

195193
if (
196-
$deploymentConfig->isAvailable()
197-
&& $state->getMode() !== State::MODE_PRODUCTION
194+
$state->getMode() !== State::MODE_PRODUCTION
198195
&& !$generationDirectoryAccess->check()
199196
) {
200197
$this->writeGenerationDirectoryReadError();

0 commit comments

Comments
 (0)