提交 dae04c65 编写于 作者: 冰点.'s avatar 冰点. 提交者: Gitee

如果不配置禁止权限,默认全部放行

上级 5ab02fbd
......@@ -92,6 +92,9 @@ public class SimpleAuthorizationInterceptor implements AuthorizationInterceptor
*/
@Override
public boolean allowVisit(MagicUser magicUser, HttpServletRequest request, Authorization authorization) {
if(denyOptions==null){
return true;
}
String[] denyOption = denyOptions.get(magicUser.getUsername()).split(",");
List<String> list = Arrays.asList(denyOption);
return !list.contains(authorization.name());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册