Fixed a bug in CMIS cancelCheckOut() (Web Services)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30097 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Florian Mü
2011-08-26 13:22:21 +00:00
parent b746747d4a
commit d8501628d4

View File

@@ -2034,7 +2034,7 @@ public class AlfrescoCmisService extends AbstractCmisService
CMISNodeInfo info = getOrCreateNodeInfo(objectId, "Object"); CMISNodeInfo info = getOrCreateNodeInfo(objectId, "Object");
// only accept a PWC // only accept a PWC
if (info.isVariant(CMISObjectVariant.PWC)) if (!info.isVariant(CMISObjectVariant.PWC))
{ {
throw new CmisVersioningException("Object is not a PWC!"); throw new CmisVersioningException("Object is not a PWC!");
} }