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

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 14:29:27 CEST 2010


Author: lolando
Date: 2010-05-21 14:29:27 +0200 (Fri, 21 May 2010)
New Revision: 9875

Modified:
   trunk/gforge/common/include/RBAC.php
Log:
Settings must be saved even if zero, otherwise the normalization might grant too many privileges

Modified: trunk/gforge/common/include/RBAC.php
===================================================================
--- trunk/gforge/common/include/RBAC.php	2010-05-21 12:26:25 UTC (rev 9874)
+++ trunk/gforge/common/include/RBAC.php	2010-05-21 12:29:27 UTC (rev 9875)
@@ -400,10 +400,6 @@
 					       $section,
 					       $reference)) ;
 
-		if ($value == 0) {
-			return ;
-		}
-
 		$res = db_query_params ('INSERT INTO pfo_role_setting (role_id, section_name, ref_id, perm_val) VALUES ($1, $2, $3, $4)',
 						array ($role_id,
 						       $section,




More information about the Fusionforge-commits mailing list