This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.1 has been updated
       via  e0878c7b3a53bd13be6e65307be4aa47e1a3323e (commit)
      from  caa37ef539a7f65aa3ff40475ea4cfce34190fb8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=e0878c7b3a53bd13be6e65307be4aa47e1a3323e

commit e0878c7b3a53bd13be6e65307be4aa47e1a3323e
Author: Franck Villaume <[email protected]>
Date:   Thu Jan 11 09:43:37 2018 +0000

    rss activity: fix permission check for task/pm

diff --git a/src/www/export/rss20_activity.php 
b/src/www/export/rss20_activity.php
index a6a00fa..c40cfe6 100644
--- a/src/www/export/rss20_activity.php
+++ b/src/www/export/rss20_activity.php
@@ -115,8 +115,8 @@ if ($group_id) {
                                }
                                print "  <item>\n";
                                print "   <title>".htmlspecialchars('Tracker 
Item [#'.$arr['subref_id'].' '.$arr['description'].'] Opened')."</title>\n";
-                               print "   
<link>".util_make_url("/tracker/?func=detail&amp;atid=".$arr['ref_id'].'&amp;aid='.$arr['subref_id'].'&amp;group_id='.$arr['group_id'])."</link>\n";
-                               print "   
<comments>".util_make_url("/tracker/?func=detail&amp;atid=".$arr['ref_id'].'&amp;aid='.$arr['subref_id'].'&amp;group_id='.$arr['group_id'])."</comments>\n";
+                               print "   
<link>".util_make_url("/tracker/a_follow.php/".$arr['subref_id'])."</link>\n";
+                               print "   
<comments>".util_make_url("/tracker/a_follow.php/".$arr['subref_id'])."</comments>\n";
                                $arr['category'] = _('Trackers');
                                break;
                        }
@@ -126,8 +126,8 @@ if ($group_id) {
                                }
                                print "  <item>\n";
                                print "   <title>".htmlspecialchars('Tracker 
Item [#'.$arr['subref_id'].' '.$arr['description'].'] Closed')."</title>\n";
-                               print "   
<link>".util_make_url("/tracker/?func=detail&amp;atid=".$arr['ref_id'].'&amp;aid='.$arr['subref_id'].'&amp;group_id='.$arr['group_id'])."</link>\n";
-                               print "   
<comments>".util_make_url("/tracker/?func=detail&amp;atid=".$arr['ref_id'].'&amp;aid='.$arr['subref_id'].'&amp;group_id='.$arr['group_id'])."</comments>\n";
+                               print "   
<link>".util_make_url("/tracker/a_follow.php/".$arr['subref_id'])."</link>\n";
+                               print "   
<comments>".util_make_url("/tracker/a_follow.php/".$arr['subref_id'])."</comments>\n";
                                $arr['category'] = _('Trackers');
                                break;
                        }
@@ -197,6 +197,39 @@ if ($group_id) {
                                $arr['category'] = _('Documents');
                                break;
                        }
+                       case 'taskopen': {
+                               if (!forge_check_perm('pm', $arr['ref_id'], 
'read')) {
+                                       continue(2);
+                               }
+                               print "  <item>\n";
+                               print "   <title>".htmlspecialchars('Task Item 
[#'.$arr['subref_id'].' '.$arr['description'].'] Open')."</title>\n";
+                               print "   
<link>".util_make_url("/pm/t_follow.php/".$arr['subref_id'])."</link>\n";
+                               print "   
<comments>".util_make_url("/pm/t_follow.php/".$arr['subref_id'])."</comments>\n";
+                               $arr['category'] = _('Tasks');
+                               break;
+                       }
+                       case 'taskclose': {
+                               if (!forge_check_perm('pm', $arr['ref_id'], 
'read')) {
+                                       continue(2);
+                               }
+                               print "  <item>\n";
+                               print "   <title>".htmlspecialchars('Task Item 
[#'.$arr['subref_id'].' '.$arr['description'].'] Closed')."</title>\n";
+                               print "   
<link>".util_make_url("/pm/t_follow.php/".$arr['subref_id'])."</link>\n";
+                               print "   
<comments>".util_make_url("/pm/t_follow.php/".$arr['subref_id'])."</comments>\n";
+                               $arr['category'] = _('Tasks');
+                               break;
+                       }
+                       case 'taskdelete': {
+                               if (!forge_check_perm('pm', $arr['ref_id'], 
'read')) {
+                                       continue(2);
+                               }
+                               print "  <item>\n";
+                               print "   <title>".htmlspecialchars('Task Item 
[#'.$arr['subref_id'].' '.$arr['description'].'] Deleted')."</title>\n";
+                               print "   
<link>".util_make_url("/pm/t_follow.php/".$arr['subref_id'])."</link>\n";
+                               print "   
<comments>".util_make_url("/pm/t_follow.php/".$arr['subref_id'])."</comments>\n";
+                               $arr['category'] = _('Tasks');
+                               break;
+                       }
                        default: {
                                print "  <item>\n";
                                print "   
<title>".htmlspecialchars($arr['title'])."</title>\n";

-----------------------------------------------------------------------

Summary of changes:
 src/www/export/rss20_activity.php | 41 +++++++++++++++++++++++++++++++++++----
 1 file changed, 37 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to