Closed MarkWiltberger closed 1 month ago
Here is the branch created for this issue:
make-it-so-only-the-realtor-who-created-home-can-update-or-delete-0028
Made a commit:
make a getRealtorByHomeId function and then check user id for update and delete home functions
Tested it manually using Postman
Make it so that when the updateHome or deleteHome services is called, if the user logged in is not the same as the realtor user who created the home listing, the update or delete is not allowed and an unauthorized exception is thrown.