Skip to content

Commit 4154ed5

Browse files
el-hopaness-romticjzheaux
authored andcommitted
Fix .access(...) parameter
1 parent 2e92dad commit 4154ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ You could refer to the method using:
211211
----
212212
http
213213
.authorizeHttpRequests(authorize -> authorize
214-
.requestMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,#userId)")
214+
.requestMatchers("/user/{userId}/**").access(new WebExpressionAuthorizationManager("@webSecurity.checkUserId(authentication,#userId)"))
215215
...
216216
);
217217
----

0 commit comments

Comments
 (0)