From 8e782993834d4985cd69a103ede0b34f168125ce Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 23 Sep 2012 21:13:24 +0200 Subject: Users cannot delete mailbox and lists. --- lib/Fripost/Panel/Interface.pm | 2 +- template/edit-list.html | 4 +--- template/edit-mailbox.html | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/Fripost/Panel/Interface.pm b/lib/Fripost/Panel/Interface.pm index e253ca0..7b172af 100644 --- a/lib/Fripost/Panel/Interface.pm +++ b/lib/Fripost/Panel/Interface.pm @@ -337,7 +337,7 @@ sub EditLocal : Runmode { (defined $q->param('a') and $q->param('a') eq 'delete')); $template->param( newChanges => $news ); $template->param( error => encode_entities ($error, "‘‘") ) if $error; - $template->param( canDelete => 1 ); # TODO + $template->param( canDelete => 1 ) if $t eq 'alias'; # TODO $q->delete('a'); return $template->output; } diff --git a/template/edit-list.html b/template/edit-list.html index 66e5d45..25d7af5 100644 --- a/template/edit-list.html +++ b/template/edit-list.html @@ -22,9 +22,7 @@
-

Edit list [delete]

+

Edit list

diff --git a/template/edit-mailbox.html b/template/edit-mailbox.html index 9ceb87c..5f5dc08 100644 --- a/template/edit-mailbox.html +++ b/template/edit-mailbox.html @@ -22,9 +22,7 @@
-

Edit mailbox @[delete]

+

Edit mailbox @

-- cgit v1.2.3