REPO-1108 / ALF-21645: Unable to delete a folder containing a checked-out document

- add initial fix & related new test for COCI (delete + restore)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129951 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-08-30 15:39:34 +00:00
parent 0065739435
commit 0f8c965198
2 changed files with 115 additions and 45 deletions

View File

@@ -745,7 +745,10 @@ public class LockServiceImpl implements LockService,
*/
public void beforeDeleteNode(NodeRef nodeRef)
{
checkForLock(nodeRef);
if (! nodeService.hasAspect(nodeRef, ContentModel.ASPECT_CHECKED_OUT))
{
checkForLock(nodeRef);
}
}
/**