Allow removing apps with app store disabled
Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
parent
ba6f5a4a2a
commit
92555b6014
|
@ -460,10 +460,6 @@ class OC_App {
|
||||||
* @return string|false
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
public static function getInstallPath() {
|
public static function getInstallPath() {
|
||||||
if (\OC::$server->getSystemConfig()->getValue('appstoreenabled', true) == false) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (OC::$APPSROOTS as $dir) {
|
foreach (OC::$APPSROOTS as $dir) {
|
||||||
if (isset($dir['writable']) && $dir['writable'] === true) {
|
if (isset($dir['writable']) && $dir['writable'] === true) {
|
||||||
return $dir['path'];
|
return $dir['path'];
|
||||||
|
|
Loading…
Reference in New Issue