Hotfix: Fixing Security Issues (#2848)

* Fixing Privilege Escalation

* Fixing critical obj ref in availability

* Fixing reschedule security issue

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-05-23 11:29:29 +00:00
1 parent 27422c351c
commit 38f23986ad
3 files changed
+20

No files matched your search

@@ -91,6 +91,8 @@ const handler = async (
},
});
if (bookingToReschedule.userId !== userOwner.id) throw new Error("UNAUTHORIZED");
if (bookingToReschedule && userOwner) {
let event: Partial<EventType> = {};
if (bookingToReschedule.eventTypeId) {