antville/code/Skin/securityFunctions.js
2001-10-02 10:47:49 +00:00

12 lines
284 B
JavaScript

/**
* check if user is allowed to delete this skin
*/
function isDeleteDenied() {
if (user.isBlocked())
return ("Sorry, your account was disabled!");
else if (!this.weblog.isUserAdmin())
return ("Only admins of this weblog can delete skins!");
return null;
}