[Fusionforge-commits] FusionForge branch 6.1 updated. v6.1beta1-58-gcaa37ef

Franck Villaume nerville at libremir.placard.fr.eu.org
Mon Jan 8 19:51:13 CET 2018


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  caa37ef539a7f65aa3ff40475ea4cfce34190fb8 (commit)
      from  577c0525ee1be62209fcc7756276a2081c086fb7 (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=caa37ef539a7f65aa3ff40475ea4cfce34190fb8

commit caa37ef539a7f65aa3ff40475ea4cfce34190fb8
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Mon Jan 8 19:49:57 2018 +0100

    fix error in activity in case of private scm feature in project

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 8c96ffc..482645a 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -1046,7 +1046,7 @@ control over it to the project's administrator.");
 				}
 			}
 		}
-		if (!in_array($this->name, $params['ids'])) {
+		if (!in_array($this->name, $params['ids']) && ($project->enableAnonSCM() || session_loggedin())) {
 			$params['ids'][] = $this->name;
 			$params['texts'][] = _('Git Commits');
 		}
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php b/src/plugins/scmhg/common/HgPlugin.class.php
index af32b19..46a92fb 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -736,7 +736,7 @@ Offer DAV or SSH access.");
 				}
 			}
 		}
-		if (!in_array($this->name, $params['ids'])) {
+		if (!in_array($this->name, $params['ids']) && ($project->enableAnonSCM() || session_loggedin())) {
 			$params['ids'][] = $this->name;
 			$params['texts'][] = _('Hg Commits');
 		}
diff --git a/src/plugins/scmsvn/common/SVNPlugin.class.php b/src/plugins/scmsvn/common/SVNPlugin.class.php
index e797606..0c3db7c 100644
--- a/src/plugins/scmsvn/common/SVNPlugin.class.php
+++ b/src/plugins/scmsvn/common/SVNPlugin.class.php
@@ -657,7 +657,7 @@ some control over it to the project's administrator.");
 				}
 			}
 		}
-		if (!in_array($this->name, $params['ids'])) {
+		if (!in_array($this->name, $params['ids']) && ($project->enableAnonSCM() || session_loggedin())) {
 			$params['ids'][] = $this->name;
 			$params['texts'][] = _('Subversion Commits');
 		}

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

Summary of changes:
 src/plugins/scmgit/common/GitPlugin.class.php | 2 +-
 src/plugins/scmhg/common/HgPlugin.class.php   | 2 +-
 src/plugins/scmsvn/common/SVNPlugin.class.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list