antville/code/File/securityFunction.js
Robert Gaggl 680f9e3a31 - removed check if user is blocked (will be done with onRequest())
- changes necessary due to new role-scheme
- removed isDeleteDenied()
2002-01-22 20:17:50 +00:00

14 lines
386 B
JavaScript

/**
* check if user is allowed to edit this goodie
*/
function isEditDenied(usr) {
if (this.creator != usr) {
var membership = this.weblog.isUserMember(usr);
if (!membership)
return ("You're not a member of this weblog!");
else if ((membership.level & MAY_EDIT_ANYGOODIE) == 0)
return ("You're not allowed to do this!");
}
return null;
}