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