Site.checkDelete (usr)
check if user is allowed to delete the site (only SysAdmins or the creator of a site are allowed to delete it!)

  • Parameter Obj:
    Userobject
  • Returns
    String Reason for denial (or null if allowed)
Sourcecode in Site/securityFunctions.js:
1:   function checkDelete(usr) {
2:      if (!usr.sysadmin && usr != this.creator)
3:         throw new DenyException("siteDelete");
4:      return;
5:   }