[Mapbender-commits] r4110 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 23 14:06:05 EDT 2009


Author: uli
Date: 2009-06-23 14:06:05 -0400 (Tue, 23 Jun 2009)
New Revision: 4110

Modified:
   trunk/mapbender/http/classes/class_wfs_configuration.php
Log:
$_SESSION changed to new session handling

Modified: trunk/mapbender/http/classes/class_wfs_configuration.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs_configuration.php	2009-06-23 18:04:07 UTC (rev 4109)
+++ trunk/mapbender/http/classes/class_wfs_configuration.php	2009-06-23 18:06:05 UTC (rev 4110)
@@ -207,8 +207,8 @@
 	 * @return Boolean
 	 */
 	private function accessAllowed () {
-		if ($_SESSION["mb_user_id"]) {
-			$user = new User($_SESSION["mb_user_id"]);
+		if ($mapbender_session->get("mb_user_id")) {
+			$user = new User($mapbender_session->get("mb_user_id"));
 
 			$allowedWfsConfIds = $user->getWfsConfByWfsOwner();
 
@@ -218,7 +218,7 @@
 				return true;
 			}
 		}
-		$e = new mb_exception("User '" . $_SESSION["mb_user_id"] . "' is not allowed to access Wfs conf " . $this->id . ".");
+		$e = new mb_exception("User '" . $mapbender_session->get("mb_user_id") . "' is not allowed to access Wfs conf " . $this->id . ".");
 		return false;
 	}
 	



More information about the Mapbender_commits mailing list