Comment.checkEdit (usr, level)
check if user is allowed to edit a comment

  • Parameter Obj:
    Userobject
  • Parameter Int:
    Permission-Level
  • Returns
    String Reason for denial (or null if allowed)
Sourcecode in Comment/securityFunctions.js:
1:   function checkEdit(usr, level) {
2:      if (this.creator != usr && (level & MAY_EDIT_ANYCOMMENT) == 0)
3:         throw new DenyException("commentEdit");
4:      return;
5:   }