Skip to content

Commit 0abc54c

Browse files
committed
Correct access(String) reference
Closes gh-11280
1 parent dda026b commit 0abc54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
6969
.authorizeHttpRequests(authorize -> authorize // <1>
7070
.mvcMatchers("/resources/**", "/signup", "/about").permitAll() // <2>
7171
.mvcMatchers("/admin/**").hasRole("ADMIN") // <3>
72-
.mvcMatchers("/db/**").access("hasRole('ADMIN') and hasRole('DBA')") // <4>
72+
.mvcMatchers("/db/**").access(new WebExpressionAuthorizationManager("hasRole('ADMIN') and hasRole('DBA')")) // <4>
7373
.anyRequest().denyAll() // <5>
7474
);
7575

0 commit comments

Comments
 (0)