From: Alexander Ebert Date: Tue, 21 May 2013 10:39:33 +0000 (+0200) Subject: Preventing package uninstallation if not applicable X-Git-Tag: 2.0.0_Beta_1~105 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc99dc5f3d89b5f91027d0f5791c1ed1b85ce565;p=GitHub%2FWoltLab%2FWCF.git Preventing package uninstallation if not applicable --- 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(); }