Skip to content

Commit

Permalink
fix(events): disallow updating picture in some cases (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik authored Oct 22, 2021
1 parent 4cb780f commit ebaedf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ exports.addEvent = async (req, res) => {
// Make sure the user doesn't insert malicious stuff
const data = req.body;
delete data.id;
delete data.image;
delete data.status;
delete data.deleted;

Expand Down Expand Up @@ -199,6 +200,7 @@ exports.editEvent = async (req, res) => {
const event = req.event;

delete data.id;
delete data.image;
delete data.status;
delete data.deleted;

Expand Down

0 comments on commit ebaedf9

Please sign in to comment.