mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 12:32:13 +00:00
Merge branch '6.4.x'
This commit is contained in:
commit
ba273aba43
@ -697,7 +697,7 @@ Kotlin::
|
|||||||
----
|
----
|
||||||
@Component
|
@Component
|
||||||
open class BankService {
|
open class BankService {
|
||||||
@PreFilter("filterObject.owner == authentication.name")
|
@PostFilter("filterObject.owner == authentication.name")
|
||||||
fun readAccounts(vararg ids: String): Collection<Account> {
|
fun readAccounts(vararg ids: String): Collection<Account> {
|
||||||
// ... the return value will be filtered to only contain the accounts owned by the logged-in user
|
// ... the return value will be filtered to only contain the accounts owned by the logged-in user
|
||||||
return accounts
|
return accounts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user