Fix .access(...) parameter

This commit is contained in:
el-hopaness-romtic 2023-02-16 13:02:47 +03:00 committed by Josh Cummings
parent 2e92dad761
commit 4154ed543a
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5

View File

@ -211,7 +211,7 @@ You could refer to the method using:
---- ----
http http
.authorizeHttpRequests(authorize -> authorize .authorizeHttpRequests(authorize -> authorize
.requestMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,#userId)") .requestMatchers("/user/{userId}/**").access(new WebExpressionAuthorizationManager("@webSecurity.checkUserId(authentication,#userId)"))
... ...
); );
---- ----