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.
This commit is contained in:
Lukas Reschke 2015-10-08 14:52:52 +02:00
parent 8d2c8cf2a2
commit 9866037d0c

View file

@ -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;
}
/**