Browse Source

added support to generateIsInstanceView for StorageAcl type

Piotr Labudda 8 năm trước cách đây
mục cha
commit
8fcbbeb46f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SE/se-lib/InstanceConfig.php

+ 1 - 1
SE/se-lib/InstanceConfig.php

@@ -238,7 +238,7 @@ class InstanceConfig {
 
 	static function generateIsInstanceView($namespace, $item = null, Type_InstanceConfig $conf = null) {
 		if (!$item) $item = SchemaFactory::loadDefaultObject('SystemObject')->getItem($namespace, [ 'propertyName' => '*,field' ]);
-		if (!in_array( $item['_type'], [ 'AntAcl' ] )) return null;
+		if (!in_array( $item['_type'], [ 'AntAcl', 'StorageAcl' ] )) return null;
 		$idInstance = ($conf) ? $conf->id : self::getInstanceId($namespace);
 
 		$localFieldsWithRestrictions = array_filter($item['field'], function ($field) {