From dc99dc5f3d89b5f91027d0f5791c1ed1b85ce565 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 21 May 2013 12:39:33 +0200 Subject: [PATCH] Preventing package uninstallation if not applicable --- .../files/lib/acp/action/UninstallPackageAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php index 97681854ff..afde398b8a 100644 --- a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php @@ -59,7 +59,7 @@ class UninstallPackageAction extends InstallPackageAction { */ protected function stepPrepare() { $package = new Package($this->packageID); - if (!$package->packageID) { + if (!$package->packageID || !$package->canUninstall()) { throw new IllegalLinkException(); } -- 2.20.1