Browse Source

Fix variable targetClassToUse not used

Closes gh-15567
pull/15703/head
DingHao 2 years ago committed by Josh Cummings
parent
commit
84fc5a70ee
  1. 2
      core/src/main/java/org/springframework/security/authorization/method/PostAuthorizeExpressionAttributeRegistry.java

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

@ -78,7 +78,7 @@ final class PostAuthorizeExpressionAttributeRegistry extends AbstractExpressionA @@ -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);
}
/**

Loading…
Cancel
Save