StoryMgr.checkAdd (usr, level)
function checks if user is allowed to access the storymanager of this site

  • Parameter Obj:
    Userobject
  • Parameter Int:
    Permission-Level
  • Returns
    String Reason for denial (or null if allowed)
Sourcecode in StoryMgr/securityFunctions.js:
1:   function checkAdd(usr, level) {
2:      if (!this._parent.preferences.getProperty("usercontrib") && (level & MAY_ADD_STORY) == 0)
3:         throw new DenyException("storyAdd");
4:      return;
5:   }