antville/code/StoryMgr/securityFunctions.js

14 lines
349 B
JavaScript
Raw Normal View History

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