[Fusionforge-commits] r9271 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Mar 29 11:12:36 CEST 2010


Author: lolando
Date: 2010-03-29 11:12:35 +0200 (Mon, 29 Mar 2010)
New Revision: 9271

Modified:
   trunk/gforge/common/include/Group.class.php
Log:
Added function to normalize all roles in a project

Modified: trunk/gforge/common/include/Group.class.php
===================================================================
--- trunk/gforge/common/include/Group.class.php	2010-03-29 09:12:25 UTC (rev 9270)
+++ trunk/gforge/common/include/Group.class.php	2010-03-29 09:12:35 UTC (rev 9271)
@@ -2434,6 +2434,15 @@
 		return $rolesId;
 	}
 	
+	function normalizeAllRoles () {
+		$roles = $this->getRolesId ;
+		
+		foreach ($roles as $role_id) {
+			$r = new Role ($this, $role_id) ;
+			$r->normalizeData () ;
+		}
+	}
+
 	/**
 	 *	getUnixStatus - Status of activation of unix account.
 	 *




More information about the Fusionforge-commits mailing list