Browse Source

Fix variable targetClassToUse not used

Closes gh-15567
DingHao 1 year ago
parent
commit
84fc5a70ee

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

@@ -78,7 +78,7 @@ final class PostAuthorizeExpressionAttributeRegistry extends AbstractExpressionA
 
 	private PostAuthorize findPostAuthorizeAnnotation(Method method, Class<?> targetClass) {
 		Class<?> targetClassToUse = targetClass(method, targetClass);
-		return this.postAuthorizeSynthesizer.synthesize(method, targetClass);
+		return this.postAuthorizeSynthesizer.synthesize(method, targetClassToUse);
 	}
 
 	/**