Преглед на файлове

Merge branch '5.8.x' into 6.0.x

Josh Cummings преди 2 години
родител
ревизия
b22dd9a3e9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc

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

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