2001-11-18 13:16:53 +00:00
|
|
|
/**
|
|
|
|
* function checks if user is allowed to view the storylist
|
2002-06-26 17:20:41 +00:00
|
|
|
* of this site
|
2001-12-10 23:31:25 +00:00
|
|
|
* @param Obj Userobject
|
|
|
|
* @return String Reason for denial (or null if allowed)
|
2001-11-18 13:16:53 +00:00
|
|
|
*/
|
|
|
|
|
2001-12-10 23:31:25 +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;
|
|
|
|
}
|