backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 12 May 2005 10:59:01 +0000 (10:59 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:57 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.6--patch-12
   fix Zarpas problem

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-642

htdocs.net/groupe/edit.php
templates/xnet/groupe/edit.tpl

index fbf2e0d..4e05332 100644 (file)
@@ -36,6 +36,7 @@
     if (has_perms()) {
         $dom = $globals->xdb->iterator('SELECT * FROM groupex.dom ORDER BY nom');
         $page->assign('dom', $dom);
+        $page->assign('super', true);
     }
     $page->run();
 
index f279b95..79fb3aa 100644 (file)
@@ -23,7 +23,7 @@
 <h1>{$asso.nom} : Ă‰diter l'accueil</h1>
 
 <form method="post" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
-  {perms level=admin}
+  {if $super}
   <table cellpadding="0" cellspacing="0" class='tiny'>
     <tr>
       <td class="titre">
@@ -77,7 +77,7 @@
     </tr>
   </table>
   <p></p>
-  {/perms}
+  {/if}
   <table cellpadding="0" cellspacing="0" class='tiny'>
     <tr>
       <td class="titre">