Only site administrators can allow AX aggregation (Closes #973)
authorStéphane Jacob <sj@m4x.org>
Fri, 3 Jul 2009 13:03:24 +0000 (15:03 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 3 Jul 2009 13:04:01 +0000 (15:04 +0200)
modules/xnetgrp.php
templates/xnetgrp/edit.tpl

index cc40a29..b194ceb 100644 (file)
@@ -267,13 +267,12 @@ class XnetGrpModule extends PLModule
                 XDB::execute(
                     "UPDATE  groupex.asso
                         SET  descr={?}, site={?}, mail={?}, resp={?},
-                             forum={?}, ax={?}, pub= {?}, sub_url={?},
+                             forum={?}, pub= {?}, sub_url={?},
                              unsub_url={?},flags={?}
                       WHERE  id={?}",
                       Post::v('descr'), $site,
                       Post::v('mail'), Post::v('resp'),
-                      Post::v('forum'), Post::has('ax'),
-                      Post::v('pub'),
+                      Post::v('forum'), Post::v('pub'),
                       Post::v('sub_url'), Post::v('unsub_url'),
                       $flags, $globals->asso('id'));
             }
index ce76dbf..2c5765f 100644 (file)
         </select>
       </td>
     </tr>
+    <tr>
+      <td class="titre center" colspan="2">
+        <label><input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
+        groupe agréé par l'AX</label>
+      </td>
+    </tr>
   </table>
   <p></p>
   {/if}
+
   <table cellpadding="0" cellspacing="0" class='tiny'>
     <tr>
       <td class="titre">
 
     <tr>
       <td class="titre center" colspan="2">
-        <label><input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
-        groupe agréé par l'AX</label>
-      </td>
-    </tr>
-
-    <tr>
-      <td class="titre center" colspan="2">
         Diffusion de la liste des membres&nbsp;:
         <select name="pub">
           <option value="public" {if $asso.pub eq 'public'}selected="selected"{/if}>Publique</option>