[BUGFIX] Do not require */ext to be writable in Composer Mode 72/57772/3
authorŁukasz Uznański <l.uznanski@macopedia.pl>
Sat, 31 Mar 2018 23:33:34 +0000 (01:33 +0200)
committerBenni Mack <benni@typo3.org>
Sun, 28 Oct 2018 10:12:07 +0000 (11:12 +0100)
Resolves: #81857
Releases: master
Change-Id: I2dc07e8ac23edad2c7bd4880c4fd12ebcf2e40d6
Reviewed-on: https://review.typo3.org/57772
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/install/Classes/Report/InstallStatusReport.php

index 05b0898..8e2e06a 100644 (file)
@@ -76,14 +76,17 @@ class InstallStatusReport implements \TYPO3\CMS\Reports\StatusProviderInterface
             $varPath . '/charset/' => 2,
             $varPath . '/lock/' => 2,
             $sitePath . '/typo3conf/' => 2,
-            Environment::getExtensionsPath() => 0,
             Environment::getLabelsPath() => 0,
             $sitePath . '/' . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] => -1,
             $sitePath . '/' . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . '_temp_/' => 0,
         ];
 
-        if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['allowGlobalInstall']) {
-            $checkWritable[Environment::getBackendPath() . '/ext/'] = -1;
+        // Check for writable extension folder files in non-composer mode only
+        if (!Environment::isComposerMode()) {
+            $checkWritable[Environment::getExtensionsPath()] = 0;
+            if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['allowGlobalInstall']) {
+                $checkWritable[Environment::getBackendPath() . '/ext/'] = -1;
+            }
         }
 
         foreach ($checkWritable as $path => $requirementLevel) {