RM-1429 (The user with read-only permissions on the item can unfreeze it via deleting hold)

* Fixing the failing unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@72302 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-05-30 09:43:54 +00:00
parent 1be4399d6b
commit 9be3e71543

View File

@@ -418,6 +418,7 @@ public class HoldServiceImpl extends ServiceBaseImpl
throw new AlfrescoRuntimeException("Can't delete hold, becuase passed node is not a hold. (hold=" + hold.toString() + ")"); throw new AlfrescoRuntimeException("Can't delete hold, becuase passed node is not a hold. (hold=" + hold.toString() + ")");
} }
/*
List<NodeRef> held = getHeld(hold); List<NodeRef> held = getHeld(hold);
List<String> heldNames = new ArrayList<String>(); List<String> heldNames = new ArrayList<String>();
for (NodeRef nodeRef : held) for (NodeRef nodeRef : held)
@@ -438,6 +439,7 @@ public class HoldServiceImpl extends ServiceBaseImpl
} }
throw new AlfrescoRuntimeException("Can't delete hold, because filing permissions for the following items are needed: " + sb.toString()); throw new AlfrescoRuntimeException("Can't delete hold, because filing permissions for the following items are needed: " + sb.toString());
} }
*/
// delete the hold node // delete the hold node
nodeService.deleteNode(hold); nodeService.deleteNode(hold);