Ver Fonte

fixed error msg when missing perm create

Piotr Labudda há 9 anos atrás
pai
commit
84b424d8e3
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      SE/se-lib/Api/WfsServerBase.php

+ 1 - 0
SE/se-lib/Api/WfsServerBase.php

@@ -712,6 +712,7 @@ if($DBG){echo 'L.' . __LINE__ . ' $convertedTransaction:';print_r($convertedTran
 					}
 				} else if ('Insert' == $funcName) {// check perm C
 					foreach ($funcXml->children() as $fieldXml) {
+						$fieldName = $fieldXml->getName();
 						$aclIdFld = $acl->getFieldIdByName($fieldXml->getName());
 						if (!$acl->isAllowed($aclIdFld, 'C')) {
 							throw new Api_WfsException("Access Denied to Create field '{$fieldName}' in object '{$typeName}.{$pkObject}'", __LINE__, null, 'MissingFieldPermCreate', 'request');