Skip to content

Commit 71e12bb

Browse files
Kuba15jzheaux
authored andcommitted
Fix @PostResult example in method-security
Replace @PreFilter with @PostFilter in example Signed-off-by: Olivier <[email protected]>
1 parent d607364 commit 71e12bb

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
@@ -695,7 +695,7 @@ Kotlin::
695695
----
696696
@Component
697697
open class BankService {
698-
@PreFilter("filterObject.owner == authentication.name")
698+
@PostFilter("filterObject.owner == authentication.name")
699699
fun readAccounts(vararg ids: String): Collection<Account> {
700700
// ... the return value will be filtered to only contain the accounts owned by the logged-in user
701701
return accounts

0 commit comments

Comments
 (0)