From 35a20ffca4744a53b061b1488f328b66ecd2269e Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 1 Oct 2001 09:56:44 +0000 Subject: [PATCH] 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. --- src/helma/framework/core/RequestEvaluator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 3c825519..f711c73c 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -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");