Skip to content

Commit

Permalink
Fix @PostResult example in method-security
Browse files Browse the repository at this point in the history
Replace @PreFilter with @PostFilter in example

Signed-off-by: Olivier <[email protected]>
  • Loading branch information
Kuba15 authored and jzheaux committed Feb 24, 2025
1 parent d607364 commit 71e12bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Account> {
// ... the return value will be filtered to only contain the accounts owned by the logged-in user
return accounts
Expand Down

0 comments on commit 71e12bb

Please sign in to comment.