antville/code/StoryMgr/securityFunctions.js

13 lines
322 B
JavaScript
Raw Normal View History

2001-11-18 13:16:53 +00:00
/**
* function checks if user is allowed to view the storylist
* of this site
* @param Obj Userobject
* @return String Reason for denial (or null if allowed)
2001-11-18 13:16:53 +00:00
*/
function isDenied(usr) {
2002-12-01 19:26:40 +00:00
if (!this._parent.usercontrib && (req.data.memberlevel & MAY_ADD_STORY) == 0)
return "storyAddDenied";
2001-11-18 13:16:53 +00:00
return null;
}