|
@@ -35,7 +35,7 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
|
|
|
if (matchPermitAllUrl(request)) {
|
|
|
return;
|
|
|
}
|
|
|
- if ("anonymousUser".equals(authentication.getPrincipal())) {
|
|
|
+ if ("anonymousUser" .equals(authentication.getPrincipal())) {
|
|
|
throw new AccessDeniedException("no right");
|
|
|
} else {
|
|
|
String tokenStr = HttpUtils.getHeaders(request).get("Authorization");
|
|
@@ -51,7 +51,7 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
|
|
|
url = authority[0];
|
|
|
method = authority[1];
|
|
|
if (matchers(url, request)) {
|
|
|
- if (method.equals(request.getMethod()) || "ALL".equals(method)) {
|
|
|
+ if (method.equals(request.getMethod()) || "ALL" .equals(method)) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -135,6 +135,11 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
|
|
|
|| matchers("/sys/tokenPermission/getPermission", request)
|
|
|
|| matchers("/push/push", request)
|
|
|
|| matchers("/push/indicationPush", request)
|
|
|
+ || matchers("/sys/plan/getPlanInfoPages", request)
|
|
|
+ || matchers("/sys/plan/savePlanInfoDatas", request)
|
|
|
+ || matchers("/sys/plan/getSysPlanInfoDatas", request)
|
|
|
+ || matchers("/sys/plan/cancelPlanDatas", request)
|
|
|
+ || matchers("/sys/plan/revStopPlans", request)
|
|
|
|| matchers("/", request)) {
|
|
|
return true;
|
|
|
}
|