From 9fffd6e66f79fd5392d8d7e28da58e60dee8df35 Mon Sep 17 00:00:00 2001 From: Olivier Date: Fri, 21 Feb 2025 11:58:23 +0100 Subject: [PATCH] Fix @PostResult example in method-security Replace @PreFilter with @Postfilter in example Signed-off-by: Olivier --- .../ROOT/pages/servlet/authorization/method-security.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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