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

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