FileMgr.checkAdd (usr, level) |
check if user is allowed to add files
|
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: } |