Merge pull request #19650 from owncloud/disable-appstore-for-ee

Disable app store for EE by default
This commit is contained in:
Thomas Müller 2015-10-08 16:00:41 +02:00
commit 1227786930
1 changed files with 7 additions and 1 deletions

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