Fixes
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 10 Feb 2007 11:00:08 +0000 (11:00 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 10 Feb 2007 11:00:08 +0000 (11:00 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.13@1491 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/xnetgrp/mail.inc.php
modules/xnetlists.php
templates/lists/header_listes.tpl

index b03865d..36cf415 100644 (file)
@@ -21,7 +21,7 @@
 
 // {{{ get_all_redirects
 
-function get_all_redirects($membres, $exclude, $mls, &$client)
+function get_all_redirects($membres, $mls, &$client)
 {
     global $globals;
     
index 3125e08..dd6812a 100644 (file)
@@ -123,7 +123,6 @@ class XnetListsModule extends ListsModule
         $this->prepare_client($page);
 
         $page->changeTpl('xnetlists/create.tpl');
-        $page->assign('force_list_super', may_update());
 
         if (!Post::has('submit')) {
             return;
index 03a5fb0..2829e02 100644 (file)
@@ -46,7 +46,7 @@
       {/if}
     </td>
   </tr>
-  {if $details.own || $smarty.session.perms eq admin || $force_list_super}
+  {if $details.own || $smarty.session.perms eq admin || ($it_is_xnet && $is_admin)}
   <tr>
     <td><strong>Administrer la liste :</strong></td>
     <td>
@@ -73,7 +73,8 @@
     </td>
   </tr>
   {/if}
-  {if $smarty.session.perms eq admin || $force_list_super}
+  {if $smarty.session.perms eq admin || ($it_is_xnet && $is_admin)}
+
   <tr>
     <td><strong>Administrer (avancĂ©) :</strong></td>
     <td>
@@ -90,7 +91,7 @@
     </td>
   </tr>
   {/if}
-  {if $it_is_xnet}
+  {if $it_is_xnet && ($details.own || $is_admin)}
   <tr>
     <td><strong>Synchroniser</strong></td>
     {if $on neq sync}