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:
parent
cdf170c568
commit
35a20ffca4
1 changed files with 6 additions and 1 deletions
|
@ -939,6 +939,11 @@ public class RequestEvaluator implements Runnable {
|
||||||
if (op == null)
|
if (op == null)
|
||||||
op = esNodePrototype;
|
op = esNodePrototype;
|
||||||
|
|
||||||
|
|
||||||
|
DbMapping dbm = n.getDbMapping ();
|
||||||
|
if (dbm != null && dbm.isInstanceOf ("user"))
|
||||||
|
esn = new ESUser (n, this, null);
|
||||||
|
else
|
||||||
esn = new ESNode (op, evaluator, n, this);
|
esn = new ESNode (op, evaluator, n, this);
|
||||||
|
|
||||||
objectcache.put (n, esn);
|
objectcache.put (n, esn);
|
||||||
|
|
Loading…
Add table
Reference in a new issue