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!)
|
Sourcecode in Site/securityFunctions.js:
1: function checkDelete(usr) { 2: if (!usr.sysadmin && usr != this.creator) 3: throw new DenyException("siteDelete"); 4: return; 5: } |