GeoJcrIndex working
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.core / src / main / java / org / argeo / security / core / KeyBasedSystemExecutionService.java
index d586d1178268af09ed507bea46390eac1c41ef33..2fc4388afbca2de6411e400bc7303ad2248caf38 100644 (file)
@@ -41,6 +41,9 @@ public class KeyBasedSystemExecutionService implements SystemExecutionService {
                                securityContext.setAuthentication(auth);
 
                                runnable.run();
+
+                               // remove the authentication
+                               securityContext.setAuthentication(null);
                        }
                };
        }