Commit b0251ae3 by naan1993

修复一处可能引起权限错误的bug

parent 5fd05f25
......@@ -59,7 +59,7 @@ public class PermissionCheckFactory implements ICheck {
if (null == user) {
return false;
}
String requestURI = request.getRequestURI().replace(ConfigListener.getConf().get("contextPath"), "");
String requestURI = request.getRequestURI().replaceFirst(ConfigListener.getConf().get("contextPath"), "");
String[] str = requestURI.split("/");
if (str.length > 3) {
requestURI = "/" + str[1] + "/" + str[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