aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-29 13:41:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-31 14:15:12 +0100
commitefbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd (patch)
tree97bcb0465886f975f356dfc8623deb79d77f9549 /lib/private/Installer.php
parenta68895e33427483f149e55ae3d6ec30315d8ac96 (diff)
downloadnextcloud-server-efbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd.tar.gz
nextcloud-server-efbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd.zip
Remove OC_App::removeApp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r--lib/private/Installer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 6a78ea329cc..ad2dcb60f20 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -471,6 +471,9 @@ class Installer {
*/
public function removeApp($appId) {
if($this->isDownloaded( $appId )) {
+ if (\OC::$server->getAppManager()->isShipped($appId)) {
+ return false;
+ }
$appDir = OC_App::getInstallPath() . '/' . $appId;
OC_Helper::rmdirr($appDir);
return true;