mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 05:42:31 +00:00
Corrections to calculated order values from "before" and "after" attributes.
This commit is contained in:
parent
acf5601714
commit
e6d6e88117
@ -58,11 +58,11 @@ public class OrderedFilterBeanDefinitionDecorator implements BeanDefinitionDecor
|
|||||||
String before = elt.getAttribute(ATT_BEFORE);
|
String before = elt.getAttribute(ATT_BEFORE);
|
||||||
|
|
||||||
if (StringUtils.hasText(after)) {
|
if (StringUtils.hasText(after)) {
|
||||||
return FilterChainOrder.getOrder(after).toString();
|
return Integer.toString(FilterChainOrder.getOrder(after) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.hasText(before)) {
|
if (StringUtils.hasText(before)) {
|
||||||
return FilterChainOrder.getOrder(before).toString();
|
return Integer.toString(FilterChainOrder.getOrder(before) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user