PollMgr.checkAdd (usr, level) |
function checks if user is allowed to view the storylist
of this site
|
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: } |