Update of /var/cvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders In directory james.mmbase.org:/tmp/cvs-serv27633
Modified Files: Contexts.java Log Message: The node can be requested from the user object, which is beter in case the usercontext object was a 'local admin' (of which the username could coincide with another user) See also: http://cvs.mmbase.org/viewcvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders Index: Contexts.java =================================================================== RCS file: /var/cvs/applications/cloudcontext/src/org/mmbase/security/implementation/cloudcontext/builders/Contexts.java,v retrieving revision 1.57 retrieving revision 1.58 diff -u -b -r1.57 -r1.58 --- Contexts.java 8 Dec 2008 17:02:46 -0000 1.57 +++ Contexts.java 9 Dec 2008 09:34:18 -0000 1.58 @@ -35,7 +35,7 @@ * @author Eduard Witteveen * @author Pierre van Rooden * @author Michiel Meeuwissen - * @version $Id: Contexts.java,v 1.57 2008/12/08 17:02:46 michiel Exp $ + * @version $Id: Contexts.java,v 1.58 2008/12/09 09:34:18 michiel Exp $ * @see org.mmbase.security.implementation.cloudcontext.Verify * @see org.mmbase.security.Authorization */ @@ -916,8 +916,7 @@ * @javadoc */ protected MMObjectNode getUserNode(UserContext user) { - Provider users = Authenticate.getInstance().getUserProvider(); - return users.getUser(user.getIdentifier()); + return ((User) user).getNode(); } protected MMObjectNode getGroupOrUserNode(Parameters a) { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs