[Fusionforge-commits] FusionForge branch Branch_5_3 updated. b1f2fa6276880e817b700470a577ce9a02017e39

Franck Villaume nerville at fusionforge.org
Sat Sep 6 17:52:21 CEST 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  b1f2fa6276880e817b700470a577ce9a02017e39 (commit)
      from  26d2007475de98be62ba26a55cadac14af8821d7 (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 b1f2fa6276880e817b700470a577ce9a02017e39
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Sep 6 17:50:19 2014 +0200

    partial fix [#720] plugin scmsvn: anonymous role permission setting read/write

diff --git a/src/plugins/scmsvn/common/SVNPlugin.class.php b/src/plugins/scmsvn/common/SVNPlugin.class.php
index bbd2105..3296a14 100644
--- a/src/plugins/scmsvn/common/SVNPlugin.class.php
+++ b/src/plugins/scmsvn/common/SVNPlugin.class.php
@@ -369,8 +369,12 @@ class SVNPlugin extends SCMPlugin {
 			}
 
 			if ($project->enableAnonSCM()) {
-				$access_data .= forge_get_config('anonsvn_login', 'scmsvn')." = r\n";
-				$access_data .= "* = r\n";
+				$anonRole = RoleAnonymous::getInstance();
+				if ($anonRole->hasPermission('scm', $project->getID(), 'write')) {
+					$access_data .= forge_get_config('anonsvn_login', 'scmsvn')." = rw\n";
+				} else {
+					$access_data .= forge_get_config('anonsvn_login', 'scmsvn')." = r\n";
+				}
 			}
 
 			$access_data .= "\n";

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

Summary of changes:
 src/plugins/scmsvn/common/SVNPlugin.class.php |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list