Moved python script to correct directory
This commit is contained in:
@@ -43,7 +43,7 @@ public class PythonInterpreterPreInvocationAdvice implements PreInvocationAuthor
|
||||
throw new IllegalStateException("Python script did not set the permit flag");
|
||||
}
|
||||
|
||||
return Py.tojava(allowed, Boolean.class);
|
||||
return (Boolean)Py.tojava(allowed, Boolean.class);
|
||||
}
|
||||
|
||||
private Map<String,Object> createArgumentMap(MethodInvocation mi) {
|
||||
|
||||
9
itest/context/src/test/resources/someMethod.py
Normal file
9
itest/context/src/test/resources/someMethod.py
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
print authentication.name;
|
||||
|
||||
for authority in authentication.authorities:
|
||||
print authority
|
||||
|
||||
print "Granting access"
|
||||
|
||||
allow = 1
|
||||
Reference in New Issue
Block a user