Przeglądaj źródła

fixed bug in wfs server for qgis - getCapabilities

Piotr Labudda 8 lat temu
rodzic
commit
d7daa69915
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      SE/se-lib/Api/WfsQgisServer.php

+ 2 - 1
SE/se-lib/Api/WfsQgisServer.php

@@ -6,6 +6,7 @@ Lib::loadClass('Api_WfsGeomTypeConverter');
 Lib::loadClass('DBG');
 Lib::loadClass('DBG');
 Lib::loadClass('Api_Wfs_GetCapabilities');
 Lib::loadClass('Api_Wfs_GetCapabilities');
 Lib::loadClass('Api_Wfs_GetFeature');
 Lib::loadClass('Api_Wfs_GetFeature');
+Lib::loadClass('Core_AclBase');
 
 
 class Api_WfsQgisServer extends Api_WfsServerBase {
 class Api_WfsQgisServer extends Api_WfsServerBase {
 
 
@@ -221,7 +222,7 @@ if($DBG){echo '(geomFld: '.$geomFld.'):';print_r($acl->getFieldType($geomFld));e
 			// if (!in_array('the_geom', $fldList)) {
 			// if (!in_array('the_geom', $fldList)) {
 			// 	continue;
 			// 	continue;
 			// }
 			// }
-			return ($idDefaultDB == $acl->getDB()); // hide non default_db tables
+			return ($acl instanceof Core_AclBase && $idDefaultDB == $acl->getDB()); // hide non default_db tables
 		});
 		});
 
 
 		switch (V::get('outputFormat', 'xml', $_GET)) {
 		switch (V::get('outputFormat', 'xml', $_GET)) {