PollMgr.checkAdd (usr, level)
function checks if user is allowed to view the storylist of this site

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