[Mapbender-commits] r4219 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jun 25 07:35:33 EDT 2009
Author: vera
Date: 2009-06-25 07:35:33 -0400 (Thu, 25 Jun 2009)
New Revision: 4219
Modified:
trunk/mapbender/http/php/mb_validatePermission.php
Log:
session var angepasst
Modified: trunk/mapbender/http/php/mb_validatePermission.php
===================================================================
--- trunk/mapbender/http/php/mb_validatePermission.php 2009-06-25 11:34:07 UTC (rev 4218)
+++ trunk/mapbender/http/php/mb_validatePermission.php 2009-06-25 11:35:33 UTC (rev 4219)
@@ -38,7 +38,7 @@
//
// check if the user is allowed to access this module
//
-$isAllowed = $admin->getModulPermission($_SESSION["mb_user_id"], $gui_id, $e_id);
+$isAllowed = $admin->getModulPermission(Mapbender::session()->get("mb_user_id"), $gui_id, $e_id);
//
// if the module is an iframe, also check if the filename matches the
@@ -55,7 +55,7 @@
$t = array("s", "s");
$res = db_prep_query($sql, $v, $t);
while ($row = db_fetch_array($res)) {
- if (!$admin->checkModulePermission_new($_SESSION["mb_user_id"], $_SERVER["PHP_SELF"], $row["e_element"])) {
+ if (!$admin->checkModulePermission_new(Mapbender::session()->get("mb_user_id"), $_SERVER["PHP_SELF"], $row["e_element"])) {
$isCorrectScript = false;
break;
}
@@ -68,7 +68,7 @@
// If the user is not allowed to access the module, return to the login screen.
//
if (!$isAllowed) {
- $msg = "mb_validatePermission.php: User " . $_SESSION["mb_user_id"] . " is not allowed to access ".
+ $msg = "mb_validatePermission.php: User " . Mapbender::session()->get("mb_user_id") . " is not allowed to access ".
"module " . $e_id;
$e = new mb_exception($msg);
header("Location: ".LOGIN);
More information about the Mapbender_commits
mailing list