[Fusionforge-commits] r9880 - trunk/gforge/common/include
Roland Mas
lolando at libremir.placard.fr.eu.org
Fri May 21 15:22:20 CEST 2010
Author: lolando
Date: 2010-05-21 15:22:20 +0200 (Fri, 21 May 2010)
New Revision: 9880
Modified:
trunk/gforge/common/include/Role.class.php
Log:
Don't drop all settings on role update (as that might remove important data)
Modified: trunk/gforge/common/include/Role.class.php
===================================================================
--- trunk/gforge/common/include/Role.class.php 2010-05-21 13:09:16 UTC (rev 9879)
+++ trunk/gforge/common/include/Role.class.php 2010-05-21 13:22:20 UTC (rev 9880)
@@ -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 Fusionforge-commits
mailing list