feat(teams): quick add

Also fixes issue with lock icons
Also hides task copies from personal task board
This commit is contained in:
Sabe Jones
2021-05-05 16:55:07 -05:00
committed by SabreCat
parent a5680836bd
commit 072b09e030
5 changed files with 28 additions and 8 deletions

View File

@@ -371,6 +371,7 @@ async function scoreTask (user, task, direction, req, res) {
throw new BadRequest('Cannot uncheck task you did not complete if not a manager.');
}
rollbackUser = await User.findOne({ _id: task.group.completedBy });
task.group.completedBy = undefined;
}
if (rollbackUser) {