antville/code/MemberMgr/securityFunctions.js

13 lines
300 B
JavaScript
Raw Normal View History

2001-06-18 08:57:33 +00:00
/**
* check if user is allowed to edit the memberlist of this site
* @param Obj Userobject
* @return String Reason for denial (or null if allowed)
2001-06-18 08:57:33 +00:00
*/
function isEditMembersDenied(usr) {
2002-12-01 19:26:40 +00:00
if ((req.data.memberlevel & MAY_EDIT_MEMBERS) == 0)
return ("memberEditDenied");
2001-09-05 21:15:45 +00:00
return null;
2001-06-18 08:57:33 +00:00
}