Skip to content

Commit 7e60a5f

Browse files
author
Visnu Pitiyanuvath
committed
really disable voting
1 parent 7718f1d commit 7e60a5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nodeko.coffee

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ saveVote = ->
280280

281281
# create vote
282282
post '/teams/:teamId/votes', ->
283+
return @next()
283284
Team.fromParam @req.param('teamId'), (error, team) =>
284285
# TODO: handle error
285286
@vote = new Vote @req.body, @req
@@ -290,6 +291,7 @@ post '/teams/:teamId/votes', ->
290291
saveVote.call(this)
291292

292293
put '/teams/:teamId/votes/:voteId', ->
294+
return @next()
293295
Team.fromParam @req.param('teamId'), (error, team) =>
294296
Vote.fromParam @req.param('voteId'), (error, vote) =>
295297
@ensurePermitted vote, =>

0 commit comments

Comments
 (0)