Merge pull request #19650 from owncloud/disable-appstore-for-ee
Disable app store for EE by default
This commit is contained in:
commit
1227786930
|
@ -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…
Reference in New Issue