Преглед на файлове

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

This isn't actually used, but is still incorrect.
Luke Taylor преди 14 години
родител
ревизия
be8ee61f82
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      core/src/main/java/org/springframework/security/access/prepost/PreInvocationAuthorizationAdviceVoter.java

+ 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) {