Skip to content

Commit

Permalink
Fix InternalDenyFilter.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Nov 22, 2020
1 parent c40bf71 commit 478d5b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class InternalDenyFilter(
return request.requestURI.startsWith("/internal") ||
(requestMappingHandlerMapping.getHandler(request)?.handler as HandlerMethod?)
?.method?.declaringClass
?.getAnnotationsByType(InternalController::class.java) != null;
?.getAnnotation(InternalController::class.java) != null;
}

private fun isInternalAllowed() = allowInternal == "true"
Expand Down

0 comments on commit 478d5b9

Please sign in to comment.