mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-830: It's impossible to undo Cut Off for folders and records
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54958 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -49,6 +49,18 @@ public class LastDispositionActionCondition extends AbstractCapabilityCondition
|
||||
*/
|
||||
@Override
|
||||
public boolean evaluate(NodeRef nodeRef)
|
||||
{
|
||||
boolean result = evaluateImpl(nodeRef);
|
||||
|
||||
if (result == false && recordService.isRecord(nodeRef) == true)
|
||||
{
|
||||
result = evaluateImpl(nodeService.getPrimaryParent(nodeRef).getParentRef());
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private boolean evaluateImpl(NodeRef nodeRef)
|
||||
{
|
||||
boolean result = false;
|
||||
DispositionAction dispositionAction = dispositionService.getLastCompletedDispostionAction(nodeRef);
|
||||
|
Reference in New Issue
Block a user