-
Notifications
You must be signed in to change notification settings - Fork 7
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
Global users aren't able to cast the vote on subwiki's poll #111
Comments
This might be the issue with the voting method in a conditional statement. Line 58 in bc470f7
Note that the issue is reproducible on XWiki 14.10, which uses old-core API. The reason why it's reproducable on higher versions, as the API was changed since 16.10.0+ Once I invited user into created subwiki that user can save the vote on created poll. |
So the solution is to give the user edit rights on the poll page, either by joining the subwiki as mentioned above, or to change the user rights for the page/wiki to grant users from the main wiki Maybe related to this improvement: #112. |
thx @KebabRonin for checks and input |
reopened as we misunderstood the issue. We need to allow users to vote even though they don't have edit rights. We should replace edit check with the user not being guest and having view right on the poll |
Prerequisites:
Step to reproduce:
Actual result:
Global users can select options but aren't able to save their votes. The XWiki will return the error "Not allowed to vote!". The browser will have this request
PUT http://localhost/xwiki/rest/wikis/test/spaces/XPoll/spaces/Test+Poll/pages/WebHome/xpoll
, which returns a 403 status code.Expected result:
Global users are able to save their votes.
The text was updated successfully, but these errors were encountered: