I'm using:
spring-boot-starter-webspring-boot-starter-data-restspring-boot-starter-data-mongodbspring-boot-starter-security
and with spring data-rest I created REST API. Every entity has property userId. How can I use it to restrict all repository methods (e.g.: findAll(), save(), ...)?
I want that only owner can see, edit, and delete his data.