Commit a8424c6e authored by rlacko's avatar rlacko 💬
Browse files

disallow to update attendance or comment on activity

parent 2d0afcde
Pipeline #4664 passed with stages
in 1 minute and 31 seconds
......@@ -185,7 +185,7 @@ exports.default.updateOne = async (req, res) => {
try {
const activity = await Activity.findOneAndUpdate(
{ _id: req.params.id },
req.body,
omit(req.body, ['attendance', 'comment']),
{ new: true }
)
.populate({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment