[Mapbender-commits] r2086 - branches/2.4.5/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 14 03:43:00 EST 2008


Author: astrid_emde
Date: 2008-02-14 03:43:00 -0500 (Thu, 14 Feb 2008)
New Revision: 2086

Modified:
   branches/2.4.5/http/php/mod_updateWMS.php
Log:
Skript changed - user can only update the WMS that the user is owner of

Modified: branches/2.4.5/http/php/mod_updateWMS.php
===================================================================
--- branches/2.4.5/http/php/mod_updateWMS.php	2008-02-13 12:41:38 UTC (rev 2085)
+++ branches/2.4.5/http/php/mod_updateWMS.php	2008-02-14 08:43:00 UTC (rev 2086)
@@ -63,11 +63,9 @@
 
 require_once(dirname(__FILE__)."/../classes/class_administration.php");
 $admin = new administration();
-$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
-$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
-$wms_id_own = $admin->getWmsByOwnGuis($ownguis);
+$wms_id_own = $admin->getWmsByWmsOwner($_SESSION["mb_user_id"]);
 
-if (count($wms_id_own)>0 AND count($ownguis)>0 AND count($permguis)>0){
+if (count($wms_id_own)>0){
 	$v = array();
 	$t = array();
 	$c = 1;



More information about the Mapbender_commits mailing list