mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix for ALF-16837 CMIS allowable actions show incorrectly for working copy and checked out doc
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43684 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,11 +56,22 @@ public class CurrentVersionEvaluator extends AbstractActionEvaluator
|
||||
}
|
||||
|
||||
public boolean isAllowed(CMISNodeInfo nodeInfo)
|
||||
{
|
||||
if(nodeInfo.hasPWC())
|
||||
{
|
||||
if(!nodeInfo.isPWC())
|
||||
{
|
||||
return nonCurrentVersionValue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!nodeInfo.isCurrentVersion())
|
||||
{
|
||||
return nonCurrentVersionValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return currentVersionEvaluator == null ? currentVersionValue : currentVersionEvaluator.isAllowed(nodeInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user