antville/code/Site/mostread.hac
Robert Gaggl 0c8b4f852b change code according to helma's new session/usermodel:
- using session.user instead of user as argument
changed code to run with snapshot 20020531-fc:
- no more res.skin, using renderSkin instead
2002-06-02 15:55:05 +00:00

14 lines
No EOL
341 B
Text

var deny = this.isNotPublic(session.user);
if (deny) {
res.message = deny;
res.redirect(this.members.href("login"));
}
res.data.title = this.title;
res.data.head = this.renderSkinAsString("javascript");
res.data.head += this.renderSkinAsString("style");
res.data.body = this.renderSkinAsString("mostread");
this.renderSkin("page");