Skip to content

Commit a190c65

Browse files
Merge branch '6.2.x'
2 parents 6b9ba64 + cb56d1c commit a190c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Java::
188188
SecurityFilterChain web(HttpSecurity http) throws Exception {
189189
http
190190
.authorizeHttpRequests((authorize) -> authorize
191-
.requestMatchers("/endpoint").hasAuthority('USER')
191+
.requestMatchers("/endpoint").hasAuthority("USER")
192192
.anyRequest().authenticated()
193193
)
194194
// ...
@@ -205,7 +205,7 @@ Kotlin::
205205
SecurityFilterChain web(HttpSecurity http) throws Exception {
206206
http {
207207
authorizeHttpRequests {
208-
authorize("/endpoint", hasAuthority('USER'))
208+
authorize("/endpoint", hasAuthority("USER"))
209209
authorize(anyRequest, authenticated)
210210
}
211211
}

0 commit comments

Comments
 (0)