fixed bug where DbMapping wasn't set correctly for anonymous users
This commit is contained in:
parent
94c4997e01
commit
65feddbf32
1 changed files with 2 additions and 1 deletions
|
@ -28,8 +28,10 @@ public class User implements Serializable {
|
||||||
this.nid = null;
|
this.nid = null;
|
||||||
this.app = app;
|
this.app = app;
|
||||||
setNode (null);
|
setNode (null);
|
||||||
|
umap = app.getDbMapping ("user");
|
||||||
cache = new Node (sid);
|
cache = new Node (sid);
|
||||||
cache.setPrototype ("user");
|
cache.setPrototype ("user");
|
||||||
|
cache.setDbMapping (umap);
|
||||||
sessionID = sid;
|
sessionID = sid;
|
||||||
onSince = System.currentTimeMillis ();
|
onSince = System.currentTimeMillis ();
|
||||||
lastTouched = onSince;
|
lastTouched = onSince;
|
||||||
|
@ -48,7 +50,6 @@ public class User implements Serializable {
|
||||||
} else {
|
} else {
|
||||||
uid = n.getNameOrID ();
|
uid = n.getNameOrID ();
|
||||||
nid = n.getID ();
|
nid = n.getID ();
|
||||||
umap = n.getDbMapping ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue