RM-3283 - added extra check for hidden aspect + unit test

This commit is contained in:
Ana Bozianu
2016-04-14 11:28:21 +03:00
parent 41cd9092bb
commit 663c6175fc
2 changed files with 101 additions and 1 deletions

View File

@@ -136,7 +136,8 @@ public class RecordsManagementContainerType extends BaseBehaviourBean
QName childType = nodeService.getType(child);
// We only care about "folder" or sub-types
if (dictionaryService.isSubClass(childType, ContentModel.TYPE_FOLDER))
if (dictionaryService.isSubClass(childType, ContentModel.TYPE_FOLDER) &&
!nodeService.hasAspect(child, ContentModel.ASPECT_HIDDEN))
{
if (dictionaryService.isSubClass(childType, ContentModel.TYPE_SYSTEM_FOLDER))
{