mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Probable fix for RM-1886.
It's not clear to me what the correct code is in this method, but I've changed what's there by comparing it to the AssociationRef-typed method below it. My changes seem reasonable. Probably needs review. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96724 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,13 +76,8 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
|
|
||||||
public boolean supports(ConfigAttribute configAttribute)
|
public boolean supports(ConfigAttribute configAttribute)
|
||||||
{
|
{
|
||||||
boolean supports = false;
|
|
||||||
String attribute = configAttribute.getAttribute();
|
String attribute = configAttribute.getAttribute();
|
||||||
if (StringUtils.isNotBlank(attribute) && attribute.startsWith(AFTER_RM))
|
return (StringUtils.isNotBlank(attribute) && attribute.startsWith(AFTER_RM));
|
||||||
{
|
|
||||||
supports = true;
|
|
||||||
}
|
|
||||||
return supports;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
@@ -292,10 +287,9 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({"rawtypes" })
|
|
||||||
private List<ConfigAttributeDefintion> extractSupportedDefinitions(ConfigAttributeDefinition config)
|
private List<ConfigAttributeDefintion> extractSupportedDefinitions(ConfigAttributeDefinition config)
|
||||||
{
|
{
|
||||||
List<ConfigAttributeDefintion> definitions = new ArrayList<ConfigAttributeDefintion>();
|
List<ConfigAttributeDefintion> definitions = new ArrayList<>();
|
||||||
Iterator iter = config.getConfigAttributes();
|
Iterator iter = config.getConfigAttributes();
|
||||||
|
|
||||||
while (iter.hasNext())
|
while (iter.hasNext())
|
||||||
@@ -332,7 +326,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
{
|
{
|
||||||
NodeRef testNodeRef = null;
|
NodeRef testNodeRef = null;
|
||||||
|
|
||||||
if (cad.typeString.equals(cad.parent))
|
if (cad.parent)
|
||||||
{
|
{
|
||||||
testNodeRef = returnedObject.getParentRef();
|
testNodeRef = returnedObject.getParentRef();
|
||||||
}
|
}
|
||||||
@@ -348,7 +342,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cad.typeString.equals(cad.parent) && parentReadCheck != AccessDecisionVoter.ACCESS_GRANTED)
|
if (cad.parent && parentReadCheck != AccessDecisionVoter.ACCESS_GRANTED)
|
||||||
{
|
{
|
||||||
throw new AccessDeniedException("Access Denied");
|
throw new AccessDeniedException("Access Denied");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user