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

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 15:48:51 CEST 2010


Author: lolando
Date: 2010-05-21 15:48:50 +0200 (Fri, 21 May 2010)
New Revision: 9882

Modified:
   trunk/gforge/common/include/RBAC.php
Log:
How about loading the settings for the Anonymous and LoggedIn roles too?  Might be useful.

Modified: trunk/gforge/common/include/RBAC.php
===================================================================
--- trunk/gforge/common/include/RBAC.php	2010-05-21 13:35:27 UTC (rev 9881)
+++ trunk/gforge/common/include/RBAC.php	2010-05-21 13:48:50 UTC (rev 9882)
@@ -710,6 +710,7 @@
 			throw new Exception ("No PFO_RoleAnonymous role in the database") ;
 		}
 		self::$_instance->_role_id = db_result ($res, 0, 'role_id') ;
+		self::$_instance->fetchData (self::$_instance->_role_id) ;
 
 		return self::$_instance ;
 	}
@@ -752,6 +753,7 @@
 			throw new Exception ("No PFO_RoleLoggedIn role in the database") ;
 		}
 		self::$_instance->_role_id = db_result ($res, 0, 'role_id') ;
+		self::$_instance->fetchData (self::$_instance->_role_id) ;
 
 		return self::$_instance ;
 	}




More information about the Fusionforge-commits mailing list