rem: this.checkView(session.user, req.data.memberlevel); 
add: this.checkView(session.user, res.data.memberlevel); 
context: Site.prototype.history_macro = function(param) {   try {      this.checkView(session.user, req.data.memberlevel);   } catch (deny) {      return;   }   var limit = param.limit ? parseInt(param.limit, 10) : 5;   var cnt = i = 0;   var size = this.lastmod.size();   var discussions = this.preferences.get("discussions");   while (cnt < limit && i < size) {      if (i % limit == 0)         this.lastmod.prefetchChildren(i, limit);      var item = this.lastmod.get(i++);      switch (item._prototype) {         case "Story":            if (param.show == "comments")               continue;            break;         case "Comment":            if (param.show == "stories" || !item.story.online ||                  !item.story.discussions || !discussions)               continue;            break;      }      item.renderSkin("historyview");      cnt++;   }   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/e9a7800a87905f590201a6af0beb752a4e65a080/Site.js/buggy/code/Site/Site.js