From: Alexander Ebert Date: Tue, 15 May 2012 14:37:19 +0000 (+0200) Subject: Deny deletion of a cronjob if it cannot be disabled X-Git-Tag: 2.0.0_Beta_1~1028^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=993fcb4958f867cceefb14f3ae4ac41492b1c4fc;p=GitHub%2FWoltLab%2FWCF.git Deny deletion of a cronjob if it cannot be disabled Fixes #571 --- diff --git a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php index d8ed91d168..4a61b5f5e3 100644 --- a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php @@ -84,7 +84,7 @@ class Cronjob extends DatabaseObject { * @return boolean */ public function isDeletable() { - return (WCF::getSession()->getPermission('admin.system.cronjob.canDeleteCronjob') && $this->canBeEdited); + return (WCF::getSession()->getPermission('admin.system.cronjob.canDeleteCronjob') && $this->canBeEdited && $this->canBeDisabled); } /**