rem: if (!this._parent.preferences.get("usercontrib") && 
add: if (!this._parent.properties.get("usercontrib") && 
context: ImageMgr.prototype.checkAdd = function(usr, level) {   switch (this.getContext()) {      case "Site":      if (!this._parent.preferences.get("usercontrib") &&           (level & MAY_ADD_IMAGE) == 0) {         throw new DenyException("imageAdd");      } else if (this._parent.site) {         if ((level & MAY_EDIT_LAYOUTS) == 0) {            throw new DenyException("layoutEdit");         }      } else if (!usr.sysadmin) {         throw new DenyException("imageAdd");      }      break;            case "Layout":      if (this._parent.site) {         if ((level & MAY_EDIT_LAYOUTS) == 0) {            throw new DenyException("layoutEdit");         }      } else if (!usr.sysadmin) {         throw new DenyException("imageAdd");      }   }   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/d46237ae5555045222f493137c5c51dbcd7b4033/ImageMgr.js/clean/code/ImageMgr/ImageMgr.js