rem: this.checkEdit(session.user, req.data.memberlevel); 
add: this.checkEdit(session.user, res.data.memberlevel); 
context: Image.prototype.editlink_macro = function(param) {   if (this.getContext() === "Layout" && path.layout !== this.parent) {      return;   }   if (session.user) {      try {         this.checkEdit(session.user, req.data.memberlevel);      } catch (deny) {         return;      }      Html.openLink({href: this.href("edit")});      if (param.image && this.parent.images.get(param.image))         renderImage(this.parent.images.get(param.image), param);      else         res.write(param.text ? param.text : getMessage("generic.edit"));      Html.closeLink();   }   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/e9a7800a87905f590201a6af0beb752a4e65a080/Image.js/clean/code/Image/Image.js