|
@@ -465,7 +465,6 @@ class ACL {
|
|
|
public static function generateIsInstanceFunctionBody($namespace, $item = null) {
|
|
public static function generateIsInstanceFunctionBody($namespace, $item = null) {
|
|
|
if (!$item) $item = SchemaFactory::loadDefaultObject('SystemObject')->getItem($namespace, [ 'propertyName' => '*,field' ]);
|
|
if (!$item) $item = SchemaFactory::loadDefaultObject('SystemObject')->getItem($namespace, [ 'propertyName' => '*,field' ]);
|
|
|
if (!in_array( $item['_type'], [ 'AntAcl' ] )) return null;
|
|
if (!in_array( $item['_type'], [ 'AntAcl' ] )) return null;
|
|
|
- $dbName = DB::getPDO()->getDatabaseName();
|
|
|
|
|
$sqlFunBody = " RETURN 1; ";
|
|
$sqlFunBody = " RETURN 1; ";
|
|
|
$localFieldsWithRestrictions = array_filter($item['field'], function ($field) {
|
|
$localFieldsWithRestrictions = array_filter($item['field'], function ($field) {
|
|
|
if (!$field['isLocal']) return false;
|
|
if (!$field['isLocal']) return false;
|