Layout.checkEdit (usr, level) |
check if user is allowed to edit this layout
|
Sourcecode in Layout/securityFunctions.js:
1: function checkEdit(usr, level) { 2: if ((level & MAY_EDIT_LAYOUTS) == 0 && !session.user.sysadmin) 3: throw new DenyException("skinEditDenied"); 4: return null; 5: } |