bug 414, les liens du carnet RSS ou mail de notif redirigent vers les fiches privees
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 8 Jun 2006 08:20:27 +0000 (08:20 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 8 Jun 2006 08:20:27 +0000 (08:20 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@306 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
bin/cron/notifs.send.php
include/xorg.inc.php
templates/carnet/rss.tpl

index 9636694..65f1399 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,9 @@ Bug/Wish :
     * Admin :
         - #408: Admin can change sex of users without root intervention.    -Car
 
+    * Carnet :
+        - #414: Link to users' fiche go to private fiche and not public.    -Car 
     * Events :
         - #268: Hide read events.                                           -Car
         - #391: Go back to top link at end of each event.                   -Car
index efa5d08..891700f 100755 (executable)
@@ -54,8 +54,8 @@ EOF;
             require_once('../../plugins/modifier.date_format.php');
             $date  = smarty_modifier_date_format($x['date'], '%d %b %Y');
             $text .= "    - (X{$x['promo']}) {$x['prenom']} {$x['nom']} le $date\n";
-            $text .= "      {$globals->baseurl}/fiche.php?user={$x['bestalias']}\n\n";
-            $html .= "<li>(X{$x['promo']}) <a href='{$globals->baseurl}/fiche.php?user={$x['bestalias']}'>{$x['prenom']} {$x['nom']}</a> le $date</li>\n";
+            $text .= "      {$globals->baseurl}/fiche.php?user={$x['bestalias']}&force_login=1\n\n";
+            $html .= "<li>(X{$x['promo']}) <a href='{$globals->baseurl}/fiche.php?user={$x['bestalias']}&force_login=1'>{$x['prenom']} {$x['nom']}</a> le $date</li>\n";
         }
         $text .= "\n";
         $html .= "</ul>\n";
index 276cc8b..cb1fb37 100644 (file)
@@ -31,6 +31,8 @@ function _new_page($type, $tpl_name, $min_auth, $admin=false)
 {
     global $page,$globals;
     require_once("xorg/page.inc.php");
+    if ($min_auth == AUTH_PUBLIC && Env::get('force_login') == '1')
+        $min_auth = AUTH_COOKIE;
     if (!empty($admin)) {
         $page = new XorgAdmin($tpl_name, $type);
     } else switch($min_auth) {
index 0b35b06..8553e37 100644 (file)
@@ -58,7 +58,7 @@
       <title>
         [{$notifs->_cats[$cid].short}] {$x.prenom} {$x.nom} ({$x.promo}) - le {$x.date|date_format|utf8_encode}
       </title>
-      <link>{#globals.baseurl#}/fiche.php?user={$x.bestalias}</link>
+      <link>{#globals.baseurl#}/fiche.php?user={$x.bestalias}&force_login=1</link>
       <description><![CDATA[
         {if !$x.contact and !$x.dcd}
         <a href="{#globals.baseurl#}/carnet/mescontacts.php?action=ajouter&amp;user={$x.bestalias}">