MarkWiltberger / vue-nest-web-app__realtor-app

realtor-app built on vue-nest scaffolding
1 stars 0 forks source link

Make it so only the realtor who created home can update or delete #28

Closed MarkWiltberger closed 1 month ago

MarkWiltberger commented 5 months ago

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.

MarkWiltberger commented 2 months ago

Here is the branch created for this issue:

make-it-so-only-the-realtor-who-created-home-can-update-or-delete-0028

MarkWiltberger commented 2 months ago

Made a commit: make a getRealtorByHomeId function and then check user id for update and delete home functions

MarkWiltberger commented 2 months ago

Tested it manually using Postman