From e48685eff08896cc2e6d2ffd69a8ab138d877716 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 17 Dec 2024 14:29:56 +0100 Subject: [PATCH] Remove obsolete code --- .../lib/system/gridView/action/DeleteAction.class.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wcfsetup/install/files/lib/system/gridView/action/DeleteAction.class.php b/wcfsetup/install/files/lib/system/gridView/action/DeleteAction.class.php index a71d6b6add..435e43479d 100644 --- a/wcfsetup/install/files/lib/system/gridView/action/DeleteAction.class.php +++ b/wcfsetup/install/files/lib/system/gridView/action/DeleteAction.class.php @@ -34,15 +34,6 @@ class DeleteAction extends AbstractAction \assert($row instanceof DatabaseObject); $label = WCF::getLanguage()->get('wcf.global.button.delete'); - - if (!$this->isAvailable($row)) { - return << - {$label} - - HTML; - } - $endpoint = StringUtil::encodeHTML( LinkHandler::getInstance()->getControllerLink(ApiAction::class, ['id' => 'rpc']) . \sprintf($this->endpoint, $row->getObjectID()) -- 2.20.1