summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-08 18:23:20 +0200
committerLukas Reschke <lukas@owncloud.com>2015-10-08 18:26:03 +0200
commit12181aa6def2a20962ea536ace0ba472dbc1c26e (patch)
tree3a9399419e2db69c0cc7b39f1e91baa5e5fcd556 /settings
parent9b220d0576d2639740c60a72343ece99dbc39a9c (diff)
downloadnextcloud-server-12181aa6def2a20962ea536ace0ba472dbc1c26e.tar.gz
nextcloud-server-12181aa6def2a20962ea536ace0ba472dbc1c26e.zip
Don't perform checks for outdated TLS libs when no internet connection
This change makes the check return a positive result when: - The instance has been configured to not use the internet AND/OR - S2S AND the appstore is disabled
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/checksetupcontroller.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/settings/controller/checksetupcontroller.php b/settings/controller/checksetupcontroller.php
index bd3e7f157b2..2ff55fc72c9 100644
--- a/settings/controller/checksetupcontroller.php
+++ b/settings/controller/checksetupcontroller.php
@@ -123,7 +123,7 @@ class CheckSetupController extends Controller {
*
* @return array
*/
- public function getCurlVersion() {
+ protected function getCurlVersion() {
return curl_version();
}
@@ -137,6 +137,24 @@ class CheckSetupController extends Controller {
* @return string
*/
private function isUsedTlsLibOutdated() {
+ // Appstore is disabled by default in EE
+ $appStoreDefault = false;
+ if (\OC_Util::getEditionString() === '') {
+ $appStoreDefault = true;
+ }
+
+ // Don't run check when:
+ // 1. Server has `has_internet_connection` set to false
+ // 2. AppStore AND S2S is disabled
+ if(!$this->config->getSystemValue('has_internet_connection', true)) {
+ return '';
+ }
+ if(!$this->config->getSystemValue('appstoreenabled', $appStoreDefault)
+ && $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'no'
+ && $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'no') {
+ return '';
+ }
+
$versionString = $this->getCurlVersion();
if(isset($versionString['ssl_version'])) {
$versionString = $versionString['ssl_version'];
@@ -145,7 +163,7 @@ class CheckSetupController extends Controller {
}
$features = (string)$this->l10n->t('installing and updating apps via the app store or Federated Cloud Sharing');
- if(!$this->config->getSystemValue('appstoreenabled', true)) {
+ if(!$this->config->getSystemValue('appstoreenabled', $appStoreDefault)) {
$features = (string)$this->l10n->t('Federated Cloud Sharing');
}