I'm using:
- spring-boot-starter-web
- spring-boot-starter-data-rest
- spring-boot-starter-data-mongodb
- spring-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.
