Added inital group task approval

This commit is contained in:
Keith Holliday
2016-09-17 16:31:04 -05:00
parent f5ba636579
commit 97bf9ee8e8
6 changed files with 170 additions and 1 deletions
@@ -315,6 +315,10 @@ api.scoreTask = {
if (!task) throw new NotFound(res.t('taskNotFound'));
if (task.requiresApproval && !task.approved) {
throw new NotAuthorized(res.t('taskRequiresApproval'));
}
let wasCompleted = task.completed;
let [delta] = common.ops.scoreTask({task, user, direction}, req);