Allows deletion of deceased contact/watched user (Closes #1486).
authorStéphane Jacob <sj@m4x.org>
Mon, 9 May 2011 08:59:33 +0000 (10:59 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 9 May 2011 08:59:33 +0000 (10:59 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
templates/include/minifiche.tpl

index 4cd3f0d..b8f8025 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,9 @@ Bug/Wish:
         - #1474: Provides accounts data for accounts without profile       -JAC
         - #1476: Logs last use of Auth-Groupe-X keys                       -JAC
 
+    * Carnet:
+        - #1486: Allows deletion of deceased contact/watched user          -JAC
+
     * Core:
         - #1484: Fix reference to is_IE that does not exist anymore        -FRU
 
index 244ae3d..08b8026 100644 (file)
         {/if}
       {/if}
     </div>
+    {elseif hasPerm('directory_private') && $hasowner && $dead}
+    <div>
+      {if $smarty.session.user->isWatchedUser($profile)}
+      <a href="carnet/notifs/del_nonins/{$user->login()}?token={xsrf_token}">{*
+      *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
+      {elseif $smarty.session.user->isContact($profile)}
+      <a href="carnet/contacts?action=retirer&amp;user={$profile->hrid()}&amp;token={xsrf_token}">{*
+      *}{icon name=cross title="Retirer de mes contacts"}</a>
+      {/if}
+    </div>
     {/if}
 
     {if hasPerm('admin') || ($smarty.session.user->canEdit($profile) && !$smarty.session.user->isMe($user))}