1
0
mirror of synced 2026-08-04 09:17:02 +00:00

FilterSecurityInterceptor once per request set attr

Only set the attribute if once per request is true
This commit is contained in:
json20080301
2018-02-04 09:29:05 +08:00
committed by Rob Winch
parent ce5fb51b20
commit 40a1281c66
@@ -117,7 +117,7 @@ public class FilterSecurityInterceptor extends AbstractSecurityInterceptor imple
}
else {
// first time this request being called, so perform security checking
if (fi.getRequest() != null) {
if (fi.getRequest() != null && observeOncePerRequest) {
fi.getRequest().setAttribute(FILTER_APPLIED, Boolean.TRUE);
}