Explorar o código

Fix .access(...) parameter

el-hopaness-romtic %!s(int64=2) %!d(string=hai) anos
pai
achega
4154ed543a

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

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