[Fusionforge-commits] r9860 - trunk/gforge/www/project/admin

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 10:01:49 CEST 2010


Author: lolando
Date: 2010-05-21 10:01:48 +0200 (Fri, 21 May 2010)
New Revision: 9860

Modified:
   trunk/gforge/www/project/admin/roleedit.php
Log:
RBAC: edit permissions for a role

Modified: trunk/gforge/www/project/admin/roleedit.php
===================================================================
--- trunk/gforge/www/project/admin/roleedit.php	2010-05-21 08:01:35 UTC (rev 9859)
+++ trunk/gforge/www/project/admin/roleedit.php	2010-05-21 08:01:48 UTC (rev 9860)
@@ -274,7 +274,13 @@
 
 		echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
 		<td colspan="2"><strong>'.$rbac_edit_section_names[$keys[$i]].'</strong></td>
-		<td>'.html_build_select_box_from_assoc($role->getRoleVals($keys[$i]), "data[".$keys[$i]."][0]", $role->getVal($keys[$i],0), false, false ).'</td>
+		<td>';
+        	if (USE_PFO_RBAC) {
+			echo html_build_select_box_from_assoc($role->getRoleVals($keys[$i]), "data[".$keys[$i]."][$group_id]", $role->getVal($keys[$i],$group_id), false, false ) ;
+                } else {
+			echo html_build_select_box_from_assoc($role->getRoleVals($keys[$i]), "data[".$keys[$i]."][0]", $role->getVal($keys[$i],0), false, false ) ;
+                }
+		echo '</td>
 		</tr>';
 
 	}




More information about the Fusionforge-commits mailing list