[Mapbender-commits] r9311 - trunk/mapbender/http/geoportal

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 25 00:01:02 PST 2015


Author: armin11
Date: 2015-11-25 00:01:02 -0800 (Wed, 25 Nov 2015)
New Revision: 9311

Modified:
   trunk/mapbender/http/geoportal/insertUserDataIntoDb.php
Log:
Define central admin user id in mapbender.conf

Modified: trunk/mapbender/http/geoportal/insertUserDataIntoDb.php
===================================================================
--- trunk/mapbender/http/geoportal/insertUserDataIntoDb.php	2015-11-24 10:40:50 UTC (rev 9310)
+++ trunk/mapbender/http/geoportal/insertUserDataIntoDb.php	2015-11-25 08:01:02 UTC (rev 9311)
@@ -39,6 +39,12 @@
 	if ($mb_user_name == 'guest') {
 		$registerAsGuest = true;
 	}
+	//Check mapbender.conf for central portal admin user id
+	if (defined("PORTAL_ADMIN_USER_ID") && PORTAL_ADMIN_USER_ID != "" ) {
+		$mb_user_owner = "";
+	} else {
+		$mb_user_owner = "1"; //default to mapbenders root user
+	}
 	//Trimmen des Nutzernamens um Leerstellen - gibt sonst Probleme 
 	$mb_user_name = trim($mb_user_name);
 	//überprüfen ob User und oder Mail bereits existieren



More information about the Mapbender_commits mailing list