Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suaniii committed Jan 16, 2025
1 parent c65533b commit 1f93a60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/taskController.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ const taskController = function (Task) {
const updateTask = async (req, res) => {
if (
!(await hasPermission(req.body.requestor, 'updateTask')) &&
!(await hasPermission(req.body.requestor, 'removeUserFromTask'))
!(await hasPermission(req.body.requestor, 'removeUserFromTask')) &&
!(await hasPermission(req.body.requestor, 'deleteTask'))
) {
res.status(403).send({ error: 'You are not authorized to update Task.' });
return;
Expand Down

0 comments on commit 1f93a60

Please sign in to comment.