Promotion trombi should be accessible to all logged users
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 23 Nov 2006 16:50:34 +0000 (16:50 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 23 Nov 2006 16:50:34 +0000 (16:50 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1146 839d8a87-29fc-0310-9880-83ba4fa771e5

include/xnet/page.inc.php
modules/xnetgrp.php

index 35db83f..03d6a1c 100644 (file)
@@ -80,6 +80,8 @@ class XnetPage extends PlatalPage
                 $sub['annuaire du groupe'] = "$dim/annuaire";
                 $sub['trombinoscope'] = "$dim/trombi";
                 $sub['carte'] = "$dim/geoloc";
+            } elseif ($globals->asso('cat') == 'Promotions') {
+                $sub['trombinoscope'] = "$dim/trombi";
             }
             if ((is_member() || may_update()) && $globals->asso('mail_domain')) {
                 $sub['listes de diffusion'] = "$dim/lists";
index 42bf5cd..580716b 100644 (file)
@@ -402,7 +402,9 @@ class XnetGrpModule extends PLModule
     function handler_trombi(&$page, $num = 1)
     {
         global $globals;
-        if ($globals->asso('pub') == 'public') {
+        if ($globals->asso('cat') == 'Promotions') {
+            new_group_open_page('xnet/groupe/trombi.tpl');
+        } elseif ($globals->asso('pub') == 'public') {
             new_group_page('xnet/groupe/trombi.tpl');
         } else {
             new_groupadmin_page('xnet/groupe/trombi.tpl');