用户权限获取方法调整

This commit is contained in:
anhc 2022-07-11 12:32:07 +08:00
parent be8efc5b2f
commit 19a02ab05a
2 changed files with 4 additions and 0 deletions

View File

@ -1011,6 +1011,10 @@ public class CooperationWeb extends ActionWeb {
//具体文件的操作权限 //具体文件的操作权限
List<CoeCooperationRolePermModel> rolePermModels = api.queryCooperationRoleDataPermList(teamId, role.getId()); List<CoeCooperationRolePermModel> rolePermModels = api.queryCooperationRoleDataPermList(teamId, role.getId());
for (CoeCooperationRolePermModel rolePermModel : rolePermModels) { 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())); dataActionPerm.put(rolePermModel.getPalVersionId(), Arrays.asList(rolePermModel.getActionPerm().split(",").clone()));
} }
} }