mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-03 20:09:18 +00:00
FilterSecurityInterceptor once per request set attr
Only set the attribute if once per request is true
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user