小组权限相关内容调整

This commit is contained in:
anhc 2022-07-08 18:05:40 +08:00
parent 15183ca29f
commit 490025856b
2 changed files with 6 additions and 1 deletions

View File

@ -879,6 +879,10 @@ public class CooperationWeb extends ActionWeb {
//新版权限具体文件的操作权限
List<CoeCooperationRolePermModel> rolePermModels = api.queryCooperationRoleDataPermList(teamId, roleId);
for (CoeCooperationRolePermModel rolePermModel : rolePermModels) {
if (rolePermModel.getActionPerm() == null){
dataActionPerm.put(rolePermModel.getPalVersionId(),new ArrayList<>());
continue;
}
dataActionPerm.put(rolePermModel.getPalVersionId(), Arrays.asList(rolePermModel.getActionPerm().split(",").clone()));
}
}
@ -900,6 +904,7 @@ public class CooperationWeb extends ActionWeb {
}
ro.put("wsId", wsId);
ro.put("isOlderVersion", isOlderVersion);
ro.put("roleName", roleName);
ro.put("roleDesc", roleDesc);
ro.put("roleType", roleType);
@ -1274,7 +1279,7 @@ public class CooperationWeb extends ActionWeb {
}
Timestamp now = new Timestamp(System.currentTimeMillis());
CoeCooperationRoleModel roleModel = new CoeCooperationRoleModel(newRoleId, teamId, roleName, roleDesc, roleType, appPermStr, actionPermStr, dataPermStr, _uc.getUID(), now, _uc.getUID(), now);
CoeCooperationRoleModel roleModel = new CoeCooperationRoleModel(newRoleId, teamId, roleName, roleDesc, roleType, appPermStr, actionPermStr, dataPermStr, _uc.getUID(), now, _uc.getUID(), now,0);
roleModel.setIsUser(0);
boolean isSuccess = false;
if (UtilString.isEmpty(roleId)) {// 新增