Commit 75dc02bb authored by maqing's avatar maqing

修改公共资源ROLE_1角色不拦截

parent b145c897
...@@ -85,6 +85,10 @@ public class AuthorizationManager implements ReactiveAuthorizationManager<Author ...@@ -85,6 +85,10 @@ public class AuthorizationManager implements ReactiveAuthorizationManager<Author
if ("ROLE_0".equals(roleId)) { if ("ROLE_0".equals(roleId)) {
return true; return true;
} }
//如果是公共资源 直接放行
if ("ROLE_1".equals(roleId)) {
return true;
}
String[] splitpath = path.split("/"); String[] splitpath = path.split("/");
String pathNew = "/" + splitpath[1] + "/" + splitpath[2] + "/*"; String pathNew = "/" + splitpath[1] + "/" + splitpath[2] + "/*";
......
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