From 220ab012495fb5f77ce3ab4c190f697d6861728e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 9 Oct 2005 16:50:38 +0000 Subject: [PATCH] r513: You can no longer delete attachments --- attachment.php | 30 ------------------------------ templates/editattach.tpl | 1 - 2 files changed, 31 deletions(-) diff --git a/attachment.php b/attachment.php index d1fa482..46ec744 100755 --- a/attachment.php +++ b/attachment.php @@ -43,36 +43,6 @@ $log->bugid = $bug['bugid']; // ################################################################### -if ($_REQUEST['do'] == 'kill') -{ - if (!can_perform('caneditattach')) - { - $message->error_permission(); - } - - $db->query("DELETE FROM " . TABLE_PREFIX . "attachment WHERE attachmentid = $attachment[attachmentid]"); - - $log->arguments = array($attachment['attachmentid']); - $log->allowempty = true; - $log->log(); - - $message->redirect($lang->string('The attachment has been removed.'), "showreport.php?bugid=$bug[bugid]"); -} - -// ################################################################### - -if ($_REQUEST['do'] == 'delete') -{ - if (!can_perform('caneditattach')) - { - $message->error_permission(); - } - - $message->message(sprintf($lang->string('Are you sure want to delete this attachment (id: %1$s)? Yes'), $attachment['attachmentid'])); -} - -// ################################################################### - if ($_POST['do'] == 'insert') { if (!can_perform('canputattach')) diff --git a/templates/editattach.tpl b/templates/editattach.tpl index 337e42e..08829cf 100644 --- a/templates/editattach.tpl +++ b/templates/editattach.tpl @@ -33,7 +33,6 @@ $header
- [{@"Delete"}]
-- 2.43.5