소스 검색

added support to generateIsInstanceView for StorageAcl type

Piotr Labudda 8 년 전
부모
커밋
8fcbbeb46f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) {