FileMgr.checkAdd (usr, level)
check if user is allowed to add files

  • Parameter Obj:
    Userobject
  • Parameter Int:
    Permission-Level
  • Returns
    Obj Exception or null
Sourcecode in FileMgr/securityFunctions.js:
1:   function checkAdd(usr, level) {
2:      if (!this._parent.preferences.getProperty("usercontrib") && (level & MAY_ADD_FILE) == 0)
3:         throw new DenyException("fileAdd");
4:      return;
5:   }