[Fusionforge-commits] r11190 - trunk/tests/func

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Oct 26 11:42:48 CEST 2010


Author: lolando
Date: 2010-10-26 11:42:47 +0200 (Tue, 26 Oct 2010)
New Revision: 11190

Modified:
   trunk/tests/func/db_reload.php
Log:
Granting the forge admin role during DB reloads too

Modified: trunk/tests/func/db_reload.php
===================================================================
--- trunk/tests/func/db_reload.php	2010-10-26 08:51:18 UTC (rev 11189)
+++ trunk/tests/func/db_reload.php	2010-10-26 09:42:47 UTC (rev 11190)
@@ -146,6 +146,11 @@
 	$res = db_query_params ('INSERT INTO user_group (user_id,group_id,admin_flags, role_id) VALUES ($1,1,$2,17)',
 				array ($user_id,
 				       'A'));
+
+	if (file_exists ('/tmp/fusionforge-use-pfo-rbac')) { // USE_PFO_RBAC
+		$res = db_query_params ('INSERT INTO pfo_user_role ($1, 3)',
+					array ($user_id)) ;
+	}
 }
 
 ?>




More information about the Fusionforge-commits mailing list