the getNodeWrapper method will again return an instance of

ESUser instead of ESNode for all database nodes representing
a user object. This should fix all bugs where user specific
functions failed unless the user object represented a user that
was active at the time of calling.
This commit is contained in:
hns 2001-10-01 09:56:44 +00:00
parent cdf170c568
commit 35a20ffca4

View file

@ -939,7 +939,12 @@ public class RequestEvaluator implements Runnable {
if (op == null)
op = esNodePrototype;
esn = new ESNode (op, evaluator, n, this);
DbMapping dbm = n.getDbMapping ();
if (dbm != null && dbm.isInstanceOf ("user"))
esn = new ESUser (n, this, null);
else
esn = new ESNode (op, evaluator, n, this);
objectcache.put (n, esn);
// app.logEvent ("Wrapper for "+n+" created");