소스 검색

fixed bug in wfs server for qgis - getCapabilities

Piotr Labudda 8 년 전
부모
커밋
d7daa69915
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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('Api_Wfs_GetCapabilities');
 Lib::loadClass('Api_Wfs_GetFeature');
+Lib::loadClass('Core_AclBase');
 
 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)) {
 			// 	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)) {