浏览代码

不限制知识库查询权限

fengyanjie 3 年之前
父节点
当前提交
e903de308f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/config/shiro/ShiroConfig.java

+ 2 - 0
dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/config/shiro/ShiroConfig.java

@@ -50,6 +50,8 @@ public class ShiroConfig {
 
         Map<String, String> filterChainDefinitionMap = new LinkedHashMap<String, String>();
         filterChainDefinitionMap.put("/rwdedit/login", "anon");
+        filterChainDefinitionMap.put("/rwdedit/ref/type/query", "anon");
+        filterChainDefinitionMap.put("/rwdedit/ref/type/infos/query", "anon");
         filterChainDefinitionMap.put("/system/user/update", "authc,perms[system:user:update]");
         filterChainDefinitionMap.put("/**", "authc");
         shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap);