Selaa lähdekoodia

去掉人员权限校验

hym 4 vuotta sitten
vanhempi
commit
307ae9860f

+ 3 - 3
operation_manager/src/main/java/com/huaxu/process/service/impl/WorkFlowServiceImpl.java

@@ -379,7 +379,6 @@ public class WorkFlowServiceImpl implements WorkFlowService {
 
 
         LoginUser loginUser = UserUtil.getCurrentUser();
-        loginUser.setId(1);
         List<TaskPorcessResult>results=new ArrayList<>();
         String assineeFormUserId = (String) taskService.getVariable(taskId, "assineeFormUserId");
         if(assineeFormUserId!=null)
@@ -435,8 +434,9 @@ public class WorkFlowServiceImpl implements WorkFlowService {
 
     private void handleTask(Action action, String taskId, String userId, Map<String, Object> vars, String comment) {
         // 1,操作鉴权
-        Set<String> taskParticipators = getTaskParticipator(taskId,false,vars);
-        if (!taskParticipators.contains(userId)) throw new ServiceException(ResultStatus.TASK_NO_AUTHENTICATION);
+       // Set<String> taskParticipators = getTaskParticipator(taskId,false,vars);
+
+       // if (userId!=null&&!taskParticipators.contains(userId)) throw new ServiceException(ResultStatus.TASK_NO_AUTHENTICATION);
         // 2,任务认领
         Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
         ProcessInstance pi = getProcessInstanceByTask(taskId);