[Fusionforge-commits] r12690 - branches/Branch_5_1/src/common/include

Alain Peyrat aljeux at fusionforge.org
Fri Mar 11 18:09:45 CET 2011


Author: aljeux
Date: 2011-03-11 18:09:45 +0100 (Fri, 11 Mar 2011)
New Revision: 12690

Modified:
   branches/Branch_5_1/src/common/include/SCMPlugin.class.php
Log:
Anonymous access is Read, be precise.

Modified: branches/Branch_5_1/src/common/include/SCMPlugin.class.php
===================================================================
--- branches/Branch_5_1/src/common/include/SCMPlugin.class.php	2011-03-11 17:09:35 UTC (rev 12689)
+++ branches/Branch_5_1/src/common/include/SCMPlugin.class.php	2011-03-11 17:09:45 UTC (rev 12690)
@@ -3,6 +3,7 @@
  * FusionForge source control management
  *
  * Copyright 2004-2009, Roland Mas
+ * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
  *
  * This file is part of FusionForge.
  *
@@ -224,7 +225,7 @@
 	function printAdminPage ($params) {
 		$group = group_get_object($params['group_id']);
 		if ( $group->usesPlugin ( $this->name ) && $group->isPublic()) {
-			print '<p><input type="checkbox" name="scm_enable_anonymous" value="1" '.$this->c($group->enableAnonSCM()).' /><strong>'._('Enable Anonymous Access').'</strong></p>';
+			print '<p><input type="checkbox" name="scm_enable_anonymous" value="1" '.$this->c($group->enableAnonSCM()).' /><strong>'._('Enable Anonymous Read Access').'</strong></p>';
 		}
 	}
 	
@@ -235,7 +236,7 @@
 		}
 		
 		if ($project->usesPlugin ($this->name) ) {
-			if ($params['scm_enable_anonymous']) {
+			if (isset($params['scm_enable_anonymous']) && $params['scm_enable_anonymous']) {
 				$project->SetUsesAnonSCM(true);
 			} else {
 				$project->SetUsesAnonSCM(false);




More information about the Fusionforge-commits mailing list