Preventing package uninstallation if not applicable
authorAlexander Ebert <ebert@woltlab.com>
Tue, 21 May 2013 10:39:33 +0000 (12:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 21 May 2013 10:39:33 +0000 (12:39 +0200)
wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php

index 97681854ffb29241cd4ab6de97db9014abb80cb9..afde398b8ac61e3c69f6494d9a55420dcace9f3b 100644 (file)
@@ -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();
                }