diff --git a/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java b/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java index b908c9e8e9..54e4112f68 100644 --- a/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java +++ b/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java @@ -94,7 +94,7 @@ public RequestInfo newRequestInfo(ServerHttpRequest request) { RequestInfo requestInfo = new RequestInfo(false, path.value(), request.getMethod().name().toLowerCase()); - String[] currentParts = splitPath(request.getPath().value()); + String[] currentParts = splitPath(path.value()); if (currentParts.length < 3) { // return a non-resource request