From be8ee61f826f9be01a6938afe8a0ed45322deada Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sat, 24 Sep 2011 13:13:38 +0100 Subject: [PATCH] PreInvocationAuthorizationAdviceVoter was checking the wrong type in its "supports" method. This isn't actually used, but is still incorrect. --- .../access/prepost/PreInvocationAuthorizationAdviceVoter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/springframework/security/access/prepost/PreInvocationAuthorizationAdviceVoter.java b/core/src/main/java/org/springframework/security/access/prepost/PreInvocationAuthorizationAdviceVoter.java index f2ab4d3482..7132ad2895 100644 --- a/core/src/main/java/org/springframework/security/access/prepost/PreInvocationAuthorizationAdviceVoter.java +++ b/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) {