Remove obsolete code
authorMarcel Werk <burntime@woltlab.com>
Tue, 17 Dec 2024 13:29:56 +0000 (14:29 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 17 Dec 2024 13:29:56 +0000 (14:29 +0100)
wcfsetup/install/files/lib/system/gridView/action/DeleteAction.class.php

index a71d6b6add6727d781cdf3788e626c76541f8733..435e43479dbefeee2dba2133eafdb29b92f8c1c7 100644 (file)
@@ -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 <<<HTML
-                <span>
-                    {$label}
-                </span>
-                HTML;
-        }
-
         $endpoint = StringUtil::encodeHTML(
             LinkHandler::getInstance()->getControllerLink(ApiAction::class, ['id' => 'rpc']) .
                 \sprintf($this->endpoint, $row->getObjectID())