[Fusionforge-commits] FusionForge branch 6.0 updated. abbc33eb52741597b3586fbbeb5a2b1980a2fd1f

Sylvain Beucler beuc-inria at libremir.placard.fr.eu.org
Wed May 27 17:26:50 CEST 2015


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  abbc33eb52741597b3586fbbeb5a2b1980a2fd1f (commit)
      from  caef270d5dc7582fe5d9b0e41a069135e329d082 (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 abbc33eb52741597b3586fbbeb5a2b1980a2fd1f
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Wed May 27 17:25:58 2015 +0200

    scm: don't request a random repo update on normalizeData()

diff --git a/src/common/include/RBAC.php b/src/common/include/RBAC.php
index 4ee2096..384fec5 100644
--- a/src/common/include/RBAC.php
+++ b/src/common/include/RBAC.php
@@ -874,8 +874,8 @@ abstract class BaseRole extends Error {
 				}
 			}
 
-			# Change repo permissions when we change anonymous access
-			if ($sect == 'scm' && $this->getID() == $anon->getID()) {
+			# Change repo permissions when we edit anonymous access for a single project
+			if ($sect == 'scm' && $this->getID() == $anon->getID() && count($refs) == 1) {
 					$systasksq = new SysTasksQ();
 					$systasksq->add(SYSTASK_CORE, 'SCM_REPO', $refid);
 			}

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

Summary of changes:
 src/common/include/RBAC.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/include/RBAC.php b/src/common/include/RBAC.php
index 4ee2096..384fec5 100644
--- a/src/common/include/RBAC.php
+++ b/src/common/include/RBAC.php
@@ -874,8 +874,8 @@ abstract class BaseRole extends Error {
 				}
 			}
 
-			# Change repo permissions when we change anonymous access
-			if ($sect == 'scm' && $this->getID() == $anon->getID()) {
+			# Change repo permissions when we edit anonymous access for a single project
+			if ($sect == 'scm' && $this->getID() == $anon->getID() && count($refs) == 1) {
 					$systasksq = new SysTasksQ();
 					$systasksq->add(SYSTASK_CORE, 'SCM_REPO', $refid);
 			}


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list