From 9866037d0cbcdfc19d0ebb047632892e444b5dc2 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 8 Oct 2015 14:52:52 +0200 Subject: [PATCH] Disable app store for EE by default This disables the app store for EE versions by default to address some problems caused by the wrong assumption that "Official" means supported by ownCloud Inc. Administrators can still enable the app store by setting `appstoreenabled` to true in the config file. --- lib/private/ocsclient.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/private/ocsclient.php b/lib/private/ocsclient.php index 1dfab4dd3a4..e2973f82605 100644 --- a/lib/private/ocsclient.php +++ b/lib/private/ocsclient.php @@ -68,7 +68,13 @@ class OCSClient { * @return bool */ public function isAppStoreEnabled() { - return $this->config->getSystemValue('appstoreenabled', true) === true; + // For a regular edition default to true, all others default to false + $default = false; + if (\OC_Util::getEditionString() === '') { + $default = true; + } + + return $this->config->getSystemValue('appstoreenabled', $default) === true; } /**