mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4619 - moved the fileplan component check back
This commit is contained in:
@@ -138,7 +138,14 @@ public class RMNodesImpl extends NodesImpl implements RMNodes
|
|||||||
|
|
||||||
if (type == null)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user