File.checkEdit (usr, level) |
check if user is allowed to edit a file
|
Sourcecode in File/securityFunctions.js:
1: function checkEdit(usr, level) { 2: if (this.creator != usr && (level & MAY_EDIT_ANYFILE) == 0) 3: throw new DenyException("fileEdit"); 4: return; 5: } |