You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recognized it with following workflow: create a poll with "show complete results" -> watch the poll -> change poll settings to " never show results". Now I get the error message "You are not allowed to watch this poll.", if I try to unwatch the poll.
Change the return False to return self.is_ower(user). This will fix the problem only for the owners. But it's possible that other users have the same problem.
I recognized it with following workflow: create a poll with "show complete results" -> watch the poll -> change poll settings to " never show results". Now I get the error message
"You are not allowed to watch this poll."
, if I try to unwatch the poll.I see 2 possible solutions:
Bitpoll/bitpoll/poll/models.py
Lines 122 to 129 in 3e429d0
Change the
return False
toreturn self.is_ower(user)
. This will fix the problem only for the owners. But it's possible that other users have the same problem.Bitpoll/bitpoll/poll/views.py
Lines 323 to 341 in 3e429d0
Rearrange this method so that it only throws the error if the user try to watch the poll. This allows to always unwatch to poll.
Beside that it would be helpful if owners always can watch a poll (they can always see the results, so why not allow them always to watch)
The text was updated successfully, but these errors were encountered: