]> cat aescling's git repositories - mastodon.git/commit
Fix poll API not requiring authentication on non-public polls (#10960)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 4 Jun 2019 18:10:26 +0000 (20:10 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2019 18:10:26 +0000 (20:10 +0200)
commit48fee1a800a262ce26171d724c15738d083eb6d6
tree83ffc708e37db457e65b14386eb7e9d348417a66
parent6077eca240d3dc8765380c99896d85ab6e9c4ea9
Fix poll API not requiring authentication on non-public polls (#10960)

* Fix poll API not requiring authentication on non-public polls

That API does not reveal the content of the status, i.e. the question
itself, nor who the author is, nor which status it belongs to, but it
does reveal the poll options and how many answers they got

Fix #10959

* Add test
app/controllers/api/v1/polls_controller.rb
spec/controllers/api/v1/polls_controller_spec.rb