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.0 has been updated
       via  dc040e3f5de92f4d096eb58776927e1b8d35f384 (commit)
      from  a758c001cf29236dfa51cb5f2666b00de3f0678a (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=dc040e3f5de92f4d096eb58776927e1b8d35f384

commit dc040e3f5de92f4d096eb58776927e1b8d35f384
Author: Sylvain Beucler <[email protected]>
Date:   Wed Oct 21 12:08:32 2015 +0200

    projects-hierarchy: don't display a project as possible child if there's no 
read access to it (Inria)

diff --git a/src/CHANGES b/src/CHANGES
index ad0858d..2fe8e5f 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -4,6 +4,7 @@ FusionForge 6.0.4:
 * Plugin SCM: improve user matching when computing stats (Inria)
 * Plugin scmhook: fix non-editable mailing list name in some configurations 
(Inria)
 * Plugin MediaWiki: fix permission error when upgrading suspended projects 
database (Inria & TrivialDev)
+* Plugin Projects Hierarchy: don't display a project as possible child if 
there's no read access to it (Inria)
 
 FusionForge 6.0.3:
 * Layout: fix rss url when url is absolute (TrivialDev)
diff --git 
a/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php 
b/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
index 0708548..57ca2de 100644
--- a/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
+++ b/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
@@ -806,6 +806,8 @@ _('Organise projects hierarchicaly, relation type 1-n');
                                                
db_int_array_to_any_clause($family),
                                                $this->name));
                if ($son & db_numrows($son)) {
+                       if (!forge_check_perm('project_read', $son->getID()))
+                               continue;
                        $content = $HTML->openForm(array('method' => 'post', 
'action' => 
'/plugins/'.$this->name.'/?type=group&action=addChild&id='.$group_id));
                        $content .= _('Select a project')._(':');
                        $content .= html_build_select_box($son, $name, 
$selected, false);

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

Summary of changes:
 src/CHANGES                                                             | 1 +
 .../projects-hierarchy/common/projects-hierarchyPlugin.class.php        | 2 ++
 2 files changed, 3 insertions(+)


hooks/post-receive
-- 
FusionForge

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

Reply via email to