diff --git a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc index 903fcb5ac1a..3e0ae780530 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc @@ -695,7 +695,7 @@ Kotlin:: ---- @Component open class BankService { - @PreFilter("filterObject.owner == authentication.name") + @PostFilter("filterObject.owner == authentication.name") fun readAccounts(vararg ids: String): Collection { // ... the return value will be filtered to only contain the accounts owned by the logged-in user return accounts