[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 9e2df11efdbebb9ddde54668cd6dfd6414728c28

Franck VILLAUME nerville at fusionforge.org
Wed Jan 29 13:33:09 CET 2014


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, Branch_5_3 has been updated
       via  9e2df11efdbebb9ddde54668cd6dfd6414728c28 (commit)
      from  faa9572f061460978706283e73e8e82964cac1fd (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 -----------------------------------------------------------------
commit 9e2df11efdbebb9ddde54668cd6dfd6414728c28
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Jan 29 13:32:25 2014 +0100

    scmgit plugin: personal clone only available with use_ssh configuration

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index b48bb7e..57ff672 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -242,7 +242,7 @@ class GitPlugin extends SCMPlugin {
 			$b .= '<p class="error">Error: No access protocol has been allowed for the Git plugin in scmgit.ini: : use_ssh and use_dav are disabled</p>';
 		}
 
-		if (session_loggedin()) {
+		if (session_loggedin() && forge_get_config('use_ssh', 'scmgit')) {
 			$u = user_get_object(user_getid());
 			if ($u->getUnixStatus() == 'A') {
 				$result = db_query_params('SELECT * FROM scm_personal_repos p WHERE p.group_id=$1 AND p.user_id=$2 AND plugin_id=$3',

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

Summary of changes:
 src/plugins/scmgit/common/GitPlugin.class.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list