Site.checkEdit (usr, level) |
check if user is allowed to edit the preferences of this site
|
Sourcecode in Site/securityFunctions.js:
1: function checkEdit(usr, level) { 2: if (!usr.sysadmin && (level & MAY_EDIT_PREFS) == 0) 3: throw new DenyException("siteEdit"); 4: return null; 5: } |