Closed MarkWiltberger closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vue-nest-realtor-app-2 | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 23, 2024 7:12pm |
vue-nest-web-app-realtor-app | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 23, 2024 7:12pm |
This PR
As according to the issue,
This is done by importing the
UnauthorizedException
package intohome.controller.ts
.A function is created in
home.service.ts
to get the realtor id which created the home, so that it can be compared with the logged in user. If it is not the same, instead of the update or delete service being called, an Unauthorized Exception is thrown.