[Fusionforge-commits] r11814 - branches/Branch_5_1/src/common/include
Roland Mas
lolando at libremir.placard.fr.eu.org
Wed Dec 15 17:32:31 CET 2010
Author: lolando
Date: 2010-12-15 17:32:31 +0100 (Wed, 15 Dec 2010)
New Revision: 11814
Modified:
branches/Branch_5_1/src/common/include/RBAC.php
Log:
Load plugin-specific permissions for Anonymous and LoggedIn roles too
Modified: branches/Branch_5_1/src/common/include/RBAC.php
===================================================================
--- branches/Branch_5_1/src/common/include/RBAC.php 2010-12-15 15:19:07 UTC (rev 11813)
+++ branches/Branch_5_1/src/common/include/RBAC.php 2010-12-15 16:32:31 UTC (rev 11814)
@@ -1436,6 +1436,11 @@
throw new Exception ("No PFO_RoleAnonymous role in the database") ;
}
self::$_instance->_role_id = db_result ($res, 0, 'role_id') ;
+
+ $hook_params = array ();
+ $hook_params['role'] =& self::$_instance;
+ plugin_hook ("role_get", $hook_params);
+
self::$_instance->fetchData (self::$_instance->_role_id) ;
return self::$_instance ;
@@ -1479,6 +1484,11 @@
throw new Exception ("No PFO_RoleLoggedIn role in the database") ;
}
self::$_instance->_role_id = db_result ($res, 0, 'role_id') ;
+
+ $hook_params = array ();
+ $hook_params['role'] =& self::$_instance;
+ plugin_hook ("role_get", $hook_params);
+
self::$_instance->fetchData (self::$_instance->_role_id) ;
return self::$_instance ;
More information about the Fusionforge-commits
mailing list