Browse Source

PreInvocationAuthorizationAdviceVoter was checking the wrong type in its "supports" method.

This isn't actually used, but is still incorrect.
Luke Taylor 14 năm trước cách đây
mục cha
commit
be8ee61f82

+ 1 - 1
core/src/main/java/org/springframework/security/access/prepost/PreInvocationAuthorizationAdviceVoter.java

@@ -31,7 +31,7 @@ public class PreInvocationAuthorizationAdviceVoter implements AccessDecisionVote
     }
 
     public boolean supports(ConfigAttribute attribute) {
-        return attribute instanceof PreInvocationAuthorizationAdvice;
+        return attribute instanceof PreInvocationAttribute;
     }
 
     public boolean supports(Class<?> clazz) {