Skip to content

Commit

Permalink
added todo about vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
Laoujin committed Mar 10, 2024
1 parent e136182 commit 8f7ac32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/models/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export function updateAudit(audit: IAudit, user: Jwt): IAudit {
}

return {
// TODO: when doing an update, it takes the audit from the body and not from the db
// allowing the user to overwrite the audit.createdBy by modifying the request
...audit,
modifiedOn: new Date().toISOString(),
modifiedBy: user.data._id,
Expand Down

0 comments on commit 8f7ac32

Please sign in to comment.