[Mapbender-commits] r5557 - branches/2.6/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Feb 20 08:50:12 EST 2010
Author: marc
Date: 2010-02-20 08:50:11 -0500 (Sat, 20 Feb 2010)
New Revision: 5557
Modified:
branches/2.6/http/classes/class_wmc.php
Log:
http://trac.osgeo.org/mapbender/ticket/603
Modified: branches/2.6/http/classes/class_wmc.php
===================================================================
--- branches/2.6/http/classes/class_wmc.php 2010-02-20 13:30:30 UTC (rev 5556)
+++ branches/2.6/http/classes/class_wmc.php 2010-02-20 13:50:11 UTC (rev 5557)
@@ -272,7 +272,7 @@
* @param $id String the WMC id
*/
public static function getDocument ($id) {
- $sql = "SELECT wmc FROM mb_user_wmc WHERE wmc_id = $1 AND (fkey_user_id = $2 OR wmc_public = 1)";
+ $sql = "SELECT wmc FROM mb_user_wmc WHERE wmc_id = $1 AND fkey_user_id = $2 ";
$v = array($id, $_SESSION["mb_user_id"]);
$t = array('s', 'i');
$res = db_prep_query($sql,$v,$t);
@@ -280,6 +280,7 @@
if ($row) {
return $row["wmc"];
}
+
return false;
}
More information about the Mapbender_commits
mailing list