RM-4619 - moved the fileplan component check back

This commit is contained in:
Ana Bozianu
2017-01-30 17:03:41 +02:00
parent 6c2f58e734
commit 249705c21f

View File

@@ -138,7 +138,14 @@ public class RMNodesImpl extends NodesImpl implements RMNodes
if (type == null)
{
node = new FileplanComponentNode(originalNode);
if (filePlanService.isFilePlanComponent(nodeRef))
{
node = new FileplanComponentNode(originalNode);
}
else
{
throw new InvalidParameterException("The provided node is not a fileplan component");
}
}
else
{