[Fusionforge-commits] r15835 - branches/Branch_5_2/src/common/include

Olivier Meunier musicoliv at fusionforge.org
Wed Jun 27 17:36:00 CEST 2012


Author: musicoliv
Date: 2012-06-27 17:35:59 +0200 (Wed, 27 Jun 2012)
New Revision: 15835

Modified:
   branches/Branch_5_2/src/common/include/pre.php
Log:
Fix: force_login is working again with the new auth plugin system

Modified: branches/Branch_5_2/src/common/include/pre.php
===================================================================
--- branches/Branch_5_2/src/common/include/pre.php	2012-06-26 14:54:28 UTC (rev 15834)
+++ branches/Branch_5_2/src/common/include/pre.php	2012-06-27 15:35:59 UTC (rev 15835)
@@ -330,10 +330,12 @@
 		// Mandatory login
 		if (!session_loggedin() && forge_get_config ('force_login') == 1 ) {
 			$expl_pathinfo = explode('/',getStringFromServer('REQUEST_URI'));
-			if (getStringFromServer('REQUEST_URI')!='/' && $expl_pathinfo[1]!='account' && $expl_pathinfo[1]!='export' ) exit_not_logged_in();
+			if (getStringFromServer('REQUEST_URI')!='/' && $expl_pathinfo[1]!='account' && $expl_pathinfo[1]!='export' && $expl_pathinfo[1]!='plugins') exit_not_logged_in();
 			// Show proj* export even if not logged in when force login
 			// If not default web project page would be broken
 			if ($expl_pathinfo[1]=='export' && !preg_match('/^proj/', $expl_pathinfo[2])) exit_not_logged_in();
+			// We must let auth plugins go further
+			if ($expl_pathinfo[1]=='plugins' && !preg_match('/^auth/', $expl_pathinfo[2])) exit_not_logged_in();
 		}
 
 		// Insert this page view into the database




More information about the Fusionforge-commits mailing list