Skip to content

Commit cece06e

Browse files
mariodmpereirajzheaux
authored andcommitted
Fix typo on method-security.adoc
1 parent 4921b49 commit cece06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fun readAccountWithWrongRoleThenAccessDenied() {
369369
`@PreAuthorize` also can be a <<meta-annotations, meta-annotation>>, be defined <<class-or-interface-annotations,at the class or interface level>>, and use <<authorization-expressions, SpEL Authorization Expressions>>.
370370

371371
While `@PreAuthorize` is quite helpful for declaring needed authorities, it can also be used to evaluate more complex <<using_method_parameters,expressions that involve the method parameters>>.
372-
asdf
372+
373373
The above two snippets are ensuring that the user can only request orders that belong to them by comparing the username parameter to xref:servlet/authentication/architecture.adoc#servlet-authentication-authentication[`Authentication#getName`].
374374

375375
The result is that the above method will only be invoked if the `username` in the request path matches the logged-in user's `name`.

0 commit comments

Comments
 (0)