forked from github/dataease
fix(数据集): 数据集列权限
This commit is contained in:
parent
3dd8c45e92
commit
9162b96fbe
@ -196,7 +196,7 @@ public class PermissionService {
|
||||
List<DataSetColumnPermissionsDTO> deptColumnPermissionsDTOS = new ArrayList<>();
|
||||
for (DataSetColumnPermissionsDTO columnPermissionsDTO : columnPermissionService.searchPermissions(dataSetColumnPermissionsDTO)) {
|
||||
List<Long> userIdList = new Gson().fromJson(columnPermissionsDTO.getWhiteListUser(), new TypeToken<List<Long>>() {}.getType());
|
||||
if(!userIdList.contains(userId)){
|
||||
if(CollectionUtils.isNotEmpty(userIdList) && !userIdList.contains(userId)){
|
||||
deptColumnPermissionsDTOS.add(columnPermissionsDTO);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user