Browse Source

Make sure argumentsAdded flag is set correctly.

Luke Taylor 16 years ago
parent
commit
73cfeecd0c

+ 1 - 0
core/src/main/java/org/springframework/security/access/expression/support/MethodSecurityEvaluationContext.java

@@ -46,6 +46,7 @@ class MethodSecurityEvaluationContext extends StandardEvaluationContext {
 
 
         if (!argumentsAdded) {
         if (!argumentsAdded) {
             addArgumentsAsVariables();
             addArgumentsAsVariables();
+            argumentsAdded = true;
         }
         }
 
 
         return super.lookupVariable(name);
         return super.lookupVariable(name);