fixed bug where DbMapping wasn't set correctly for anonymous users

This commit is contained in:
hns 2001-07-30 00:27:50 +00:00
parent 94c4997e01
commit 65feddbf32

View file

@ -28,8 +28,10 @@ public class User implements Serializable {
this.nid = null;
this.app = app;
setNode (null);
umap = app.getDbMapping ("user");
cache = new Node (sid);
cache.setPrototype ("user");
cache.setDbMapping (umap);
sessionID = sid;
onSince = System.currentTimeMillis ();
lastTouched = onSince;
@ -48,7 +50,6 @@ public class User implements Serializable {
} else {
uid = n.getNameOrID ();
nid = n.getID ();
umap = n.getDbMapping ();
}
}