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 96bae15727
commit 896398c1ff
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))
{