Browse Source

Merge branch '6.4.x'

pull/16646/head
Josh Cummings 11 months ago
parent
commit
ba273aba43
No known key found for this signature in database
GPG Key ID: 869B37A20E876129
  1. 2
      docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

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

@ -697,7 +697,7 @@ Kotlin:: @@ -697,7 +697,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

Loading…
Cancel
Save