|
|
@@ -1174,8 +1174,7 @@ WHERE
|
|
|
(bool editPerm, string msg1) = _taskAllocationRep.EditPerm(item.Id, dto.UserId);
|
|
|
item.EditPerm = editPerm;
|
|
|
//设置任务终止权限
|
|
|
- (bool stopPerm, string msg2) = _taskAllocationRep.TaskStopPerm(item.Id, dto.UserId);
|
|
|
- item.TaskStopPerm = stopPerm;
|
|
|
+ if (item.CreateUserId == dto.UserId) item.TaskCompletedPerm = true;
|
|
|
//设置已知晓权限
|
|
|
(bool havePerm, string msg3) = _taskAllocationRep.TaskHavePerm(item.Id, dto.UserId);
|
|
|
item.TaskHavePerm = havePerm;
|