[evolvis-commits] r15201: Don't drop all settings on role update ( as that might remove important data)

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 23:49:08 CET 2011


Author: mirabilos
Date: 2011-02-28 23:49:08 +0100 (Mon, 28 Feb 2011)
New Revision: 15201

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php
Log:
Don't drop all settings on role update (as that might remove important data)

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php	2011-02-28 22:49:06 UTC (rev 15200)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php	2011-02-28 22:49:08 UTC (rev 15201)
@@ -569,11 +569,6 @@
 		}
 
 		if (USE_PFO_RBAC) {
-			// Clean everything
-			db_query_params ('DELETE FROM pfo_role_setting WHERE role_id=$1',
-					 array ($this->getID())) ;
-
-			// Re-add what's needed
 			foreach ($data as $sect => $refs) {
 				foreach ($refs as $refid => $value) {
 					$this->setSetting ($sect, $refid, $value) ;



More information about the evolvis-commits mailing list