diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-23 21:13:24 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-23 21:13:24 +0200 |
commit | 8e782993834d4985cd69a103ede0b34f168125ce (patch) | |
tree | 8e9d4b3ef2778752998fe6eaed741c4b34b8de4b | |
parent | 06a4de26e05b74e3ed5493cef205af91462678a1 (diff) |
Users cannot delete mailbox and lists.
-rw-r--r-- | lib/Fripost/Panel/Interface.pm | 2 | ||||
-rw-r--r-- | template/edit-list.html | 4 | ||||
-rw-r--r-- | 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 @@ <hr/> <div id="content"> - <h1>Edit list <span class="email"><TMPL_VAR NAME=list>@<TMPL_VAR NAME=domain></span><TMPL_IF NAME=canDelete - ><span class="action">[<a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/<TMPL_VAR NAME=list>/?a=delete">delete</a>]</span - ></TMPL_IF></h1> + <h1>Edit list <span class="email"><TMPL_VAR NAME=list>@<TMPL_VAR NAME=domain></span></h1> <TMPL_IF NAME=newChanges> 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 @@ <hr/> <div id="content"> - <h1>Edit mailbox <span class="mailbox"><TMPL_VAR NAME=user>@<TMPL_VAR NAME=domain></span><TMPL_IF NAME=canDelete - ><span class="action">[<a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/<TMPL_VAR NAME=user>/?a=delete">delete</a>]</span - ></TMPL_IF></h1> + <h1>Edit mailbox <span class="mailbox"><TMPL_VAR NAME=user>@<TMPL_VAR NAME=domain></span></h1> <TMPL_IF NAME=newChanges> |