[Fusionforge-commits] FusionForge branch master updated. b813720e92c93fe837e39ed436bf57b7322b6623

Roland Mas lolando at fusionforge.org
Mon Jan 19 14:53:27 CET 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, master has been updated
       via  b813720e92c93fe837e39ed436bf57b7322b6623 (commit)
      from  1a3416963bb644a0f07490e516aa1c9917541c8b (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 b813720e92c93fe837e39ed436bf57b7322b6623
Author: Roland Mas <lolando at debian.org>
Date:   Mon Jan 19 14:41:23 2015 +0100

    Trigger refresh of SCM repositories when roles are updated

diff --git a/src/common/include/RBAC.php b/src/common/include/RBAC.php
index 0031244..d002c8c 100644
--- a/src/common/include/RBAC.php
+++ b/src/common/include/RBAC.php
@@ -28,6 +28,7 @@
 
 require $gfcommon.'include/PFO-RBAC.interface.php';
 require_once $gfcommon.'frs/FRSPackageFactory.class.php';
+require_once $gfcommon.'include/SysTasksQ.class.php';
 
 // Code shared between classes
 
@@ -228,6 +229,9 @@ abstract class BaseRole extends Error {
 			}
 		}
 
+		$systasksq = new SysTasksQ();
+		$systasksq->add(SYSTASK_CORE, SYSTASK_SCM_REPO, $project->getID());
+
 		return true ;
 	}
 
@@ -261,6 +265,9 @@ abstract class BaseRole extends Error {
 		$hook_params['project'] =& $project;
 		plugin_hook ("role_unlink_project", $hook_params);
 
+		$systasksq = new SysTasksQ();
+		$systasksq->add(SYSTASK_CORE, SYSTASK_SCM_REPO, $project->getID());
+
 		return true ;
 	}
 
@@ -880,6 +887,11 @@ abstract class BaseRole extends Error {
 			}
 		}
 
+		$systasksq = new SysTasksQ();
+		foreach ($this->getLinkedProjects() as $project) {
+			$systasksq->add(SYSTASK_CORE, SYSTASK_SCM_REPO, $project->getID());
+		}
+
 		return true;
 	}
 

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

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


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list