From 8f13a59d0398c43a45e5beac10f5122a30546c32 Mon Sep 17 00:00:00 2001
From: Nicole Cordes <typo3@cordes.co>
Date: Sun, 11 Mar 2018 18:05:00 +0100
Subject: [PATCH] [BUGFIX] Respect automaticInstallation setting in extension
 manager

Prevent the automatic installation of new extensions if the setting
was disabled.

Resolves: #84125
Releases: master, 8.7, 7.6
Change-Id: Ic554e8870543b2f15079f7adfb1ddc2517bfc2b5
Reviewed-on: https://review.typo3.org/56361
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
---
 .../Classes/Service/ExtensionManagementService.php           | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php b/typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
index b3b6dcad4204..189134337a1e 100644
--- a/typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
+++ b/typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
@@ -226,7 +226,10 @@ class ExtensionManagementService implements \TYPO3\CMS\Core\SingletonInterface
         // Attach extension to install queue
         $this->downloadQueue->addExtensionToInstallQueue($extension);
         $installQueue += $this->downloadQueue->resetExtensionInstallStorage();
-        $installedDependencies = $this->installDependencies($installQueue);
+        $installedDependencies = [];
+        if ($this->automaticInstallationEnabled) {
+            $installedDependencies = $this->installDependencies($installQueue);
+        }
 
         return array_merge($downloadedDependencies, $updatedDependencies, $installedDependencies);
     }
-- 
GitLab