diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-06 19:59:15 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-20 15:16:11 +0100 |
commit | 769cb629aebd368fbddd6ea04067fdcfaa262e3e (patch) | |
tree | 432bfb3aca1d60128e79da57c2053bf7f19291a2 /lib/private/Installer.php | |
parent | 1c8779dc6e34a89ea9181b3cb252101e457c1543 (diff) | |
download | nextcloud-server-769cb629aebd368fbddd6ea04067fdcfaa262e3e.tar.gz nextcloud-server-769cb629aebd368fbddd6ea04067fdcfaa262e3e.zip |
allow enforcing apps to ignore the max version
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r-- | lib/private/Installer.php | 7 |
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 |