Commit bbe738b1 by zhangkb

打印用户数据权限

parent 0bbf16c1
......@@ -706,6 +706,9 @@ public class TagService {
//调用repo接口获取标签关联的元数据
Map<String,Object> tagData = repoService.getTagMetadata(dimensionType,
idPath,keyword, modelPath,pageNum, pageSize,tagType);
//获取用户关联的数据权限
Map<Long, Set<String>> systemTagMap = GrantedAuthHelper.getDataPrivileges();
tagData.put("systemTagMap", systemTagMap);
List<Map<String,Object>> content = (List<Map<String,Object>>)tagData.get("content");
//判断不是个人标签
if(!dimensionType.equals("0")) {
......@@ -717,8 +720,7 @@ public class TagService {
if(content.isEmpty()) {
return tagData;
}else {
//获取用户关联的数据权限
Map<Long, Set<String>> systemTagMap = GrantedAuthHelper.getDataPrivileges();
logger.info("tag metadata user privilege:"+systemTagMap);
if(systemTagMap.isEmpty()) {
tagData.put("content", new String[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment