fix: 用户小组权限问题(未配置删除权限,可以删除)
This commit is contained in:
parent
b32a19a115
commit
3f39349643
Binary file not shown.
@ -77,6 +77,11 @@ public class CoeCooperationAPIManager {
|
||||
}
|
||||
List<CoeCooperationRolePermModel> list = CoeCooperationRolePermCache.getByPalVersionId(versionId);
|
||||
Set<String> set = new HashSet<>();
|
||||
Set<String> setOfUserRoleId = getUserRoleIdSet(teamId, userId); // 当前用户在当前小组中的所有角色
|
||||
if (CollectionUtils.isEmpty(setOfUserRoleId)){
|
||||
return set;
|
||||
}
|
||||
list = list.stream().filter(item -> setOfUserRoleId.contains(item.getRoleId())).collect(Collectors.toList());
|
||||
for (CoeCooperationRolePermModel model : list) {
|
||||
set.addAll(Arrays.asList(model.getActionPerm().split(",")));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user