Skip to content

Commit 84fc5a7

Browse files
kse-musicjzheaux
authored andcommitted
Fix variable targetClassToUse not used
Closes gh-15567
1 parent e39b39d commit 84fc5a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/springframework/security/authorization/method/PostAuthorizeExpressionAttributeRegistry.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private MethodAuthorizationDeniedHandler resolveHandler(Method method, Class<?>
7878

7979
private PostAuthorize findPostAuthorizeAnnotation(Method method, Class<?> targetClass) {
8080
Class<?> targetClassToUse = targetClass(method, targetClass);
81-
return this.postAuthorizeSynthesizer.synthesize(method, targetClass);
81+
return this.postAuthorizeSynthesizer.synthesize(method, targetClassToUse);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)