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.
remotes/origin/dropbox-use-clientmtime
Lukas Reschke 10 years ago
parent 8d2c8cf2a2
commit 9866037d0c
  1. 8
      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;
}
/**

Loading…
Cancel
Save