Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The poll page is visible to the users who is disallowed to show the related issue #5

Closed
cat-in-136 opened this issue Mar 28, 2016 · 1 comment

Comments

@cat-in-136
Copy link
Owner

How to reproduce:

  • Create the poll page to the issue "X"
  • Make the issue "X" invisible to user "Y" (e.g. make the issue "X" private)
  • Log on as user "Y", and then directly connect to /scheduling_poll/XXX

Expected: the poll page is also invisible.

@cat-in-136
Copy link
Owner Author

Adding raise ::Unauthorized unless @poll.issue.visible? to scheduling_polls_controller#set_scheduling_poll is good.

But this change breaks many test cases of this plugin (i.e. the original test cases are not correct and shall be fixed).

cat-in-136 added a commit that referenced this issue Mar 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant