[Fusionforge-commits] FusionForge branch 6.0 updated. f912fd6d41ab1b90cdd10d7a141ef2b1cd6d8a38

Sylvain Beucler beuc-inria at fusionforge.org
Fri Apr 3 16:30:21 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  f912fd6d41ab1b90cdd10d7a141ef2b1cd6d8a38 (commit)
      from  91e961c43428eb53bba1685548d2ffd0541bbf44 (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 f912fd6d41ab1b90cdd10d7a141ef2b1cd6d8a38
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Fri Apr 3 16:28:47 2015 +0200

    Re-introduce Roland's SCM_REPO event trigger when Anonymous role is unlinked

diff --git a/src/common/include/RBAC.php b/src/common/include/RBAC.php
index 4f06188..1f46b10 100644
--- a/src/common/include/RBAC.php
+++ b/src/common/include/RBAC.php
@@ -262,6 +262,14 @@ abstract class BaseRole extends Error {
 		$hook_params['project'] =& $project;
 		plugin_hook ("role_unlink_project", $hook_params);
 
+		# Change repo permissions when we change anonymous access
+		# Not done in SetSetting() because we used batch-mode removeObsoleteSettings()
+		$anon = RoleAnonymous::getInstance();
+		if ($this->getID() == $anon->getID()) {
+				$systasksq = new SysTasksQ();
+				$systasksq->add(SYSTASK_CORE, 'SCM_REPO', $project->getID());
+		}
+
 		return true ;
 	}
 

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

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


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list