Poll.checkVote (usr, level) |
check if user is allowed to vote in a poll
|
Sourcecode in Poll/securityFunctions.js:
1: function checkVote(usr, level) { 2: this.site.checkView(usr, level); 3: if (this.closed) 4: throw new DenyException("pollClosed"); 5: return; 6: } |