Index: topia-security/src/java/org/codelutin/topia/security/listener/VetoableEntityListener.java diff -u topia-security/src/java/org/codelutin/topia/security/listener/VetoableEntityListener.java:1.2 topia-security/src/java/org/codelutin/topia/security/listener/VetoableEntityListener.java:1.3 --- topia-security/src/java/org/codelutin/topia/security/listener/VetoableEntityListener.java:1.2 Fri Sep 29 15:50:07 2006 +++ topia-security/src/java/org/codelutin/topia/security/listener/VetoableEntityListener.java Tue Oct 3 08:33:17 2006 @@ -24,9 +24,9 @@ * Created: 10 févr. 2006 * * @author Arnaud Thimel -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * -* Mise a jour: $Date: 2006/09/29 15:50:07 $ +* Mise a jour: $Date: 2006/10/03 08:33:17 $ * par : $Author: ruchaud $ */ @@ -109,16 +109,15 @@ } catch (TopiaException te) { check = false; } - } - - /* Mise en cache */ - Subject subject = Subject.getSubject(AccessController.getContext()); - if (subject != null) { - for (Principal principal : subject.getPrincipals()) { - TopiaSecurityManagerImpl.cachingLOAD.put(check, event.getId(), principal.getName()); + /* Mise en cache */ + Subject subject = Subject.getSubject(AccessController.getContext()); + if (subject != null) { + for (Principal principal : subject.getPrincipals()) { + TopiaSecurityManagerImpl.cachingLOAD.put(check, event.getId(), principal.getName()); + } } } - + return true; }