diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-05 12:55:24 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-13 13:06:12 +0100 |
commit | 3eee359d7ffd6219f6a2ab8cca18a13118552842 (patch) | |
tree | 94aa2317588ce3864a3d3715330c757f61d25713 /apps | |
parent | 642606754b133a36d7715b45b243155cbb006f95 (diff) | |
download | nextcloud-server-3eee359d7ffd6219f6a2ab8cca18a13118552842.tar.gz nextcloud-server-3eee359d7ffd6219f6a2ab8cca18a13118552842.zip |
Allow to force enable apps via CLI
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/Controller/AppSettingsController.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php index e0b25240529..80ba23594a3 100644 --- a/apps/settings/lib/Controller/AppSettingsController.php +++ b/apps/settings/lib/Controller/AppSettingsController.php @@ -549,13 +549,7 @@ class AppSettingsController extends Controller { public function force(string $appId): JSONResponse { $appId = OC_App::cleanAppId($appId); - - $ignoreMaxApps = $this->config->getSystemValue('app_install_overwrite', []); - if (!in_array($appId, $ignoreMaxApps, true)) { - $ignoreMaxApps[] = $appId; - $this->config->setSystemValue('app_install_overwrite', $ignoreMaxApps); - } - + $this->appManager->ignoreNextcloudRequirementForApp($appId); return new JSONResponse(); } |