aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r--lib/private/Installer.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index d58ccb36943..dc1110c0496 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -112,8 +112,11 @@ class Installer {
);
}
+ $ignoreMaxApps = $this->config->getSystemValue('app_install_overwrite', []);
+ $ignoreMax = in_array($appId, $ignoreMaxApps);
+
$version = implode('.', \OCP\Util::getVersion());
- if (!\OC_App::isAppCompatible($version, $info)) {
+ if (!\OC_App::isAppCompatible($version, $info, $ignoreMax)) {
throw new \Exception(
// TODO $l
$l->t('App "%s" cannot be installed because it is not compatible with this version of the server.',
@@ -123,7 +126,7 @@ class Installer {
}
// check for required dependencies
- \OC_App::checkAppDependencies($this->config, $l, $info);
+ \OC_App::checkAppDependencies($this->config, $l, $info, $ignoreMax);
\OC_App::registerAutoloading($appId, $basedir);
//install the database