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

Vote delegation setting #273

Merged
merged 5 commits into from
Jul 23, 2024
Merged

Conversation

ostcar
Copy link
Member

@ostcar ostcar commented Jul 2, 2024

This fixes #225

There are two corner cases, that should be handled the same in all services.

What should happen, when meeting/users_forbid_delegator_to_vote is set to true, the request user has delegated his vote, he votes for himself but meeting/users_enable_vote_delegations is set to false. This could happen, if a meeting admin decides later to deactivate vote-delegation. Should the user be allowed to vote for himself in this case? In This PR, he is allowed to vote for himself.

What should happen, if for any reason a user delegates his vote to himself (is this even possible in the backend?). Should he be allowed to vote for himself when meeting/users_forbid_delegator_to_vote is true? In this PR, he is not allowed to vote for himself, since this is, what the setting is saying. Does the client allow to send a vote request in this case?

@ostcar ostcar added this to the 4.2 milestone Jul 2, 2024
@ostcar ostcar requested a review from rrenkert July 2, 2024 06:38
@bastianjoel bastianjoel assigned ostcar and unassigned bastianjoel Jul 23, 2024
@ostcar ostcar merged commit 7d1e04d into OpenSlides:main Jul 23, 2024
3 checks passed
@ostcar ostcar deleted the vote-delegation-setting branch July 23, 2024 10:14
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

Successfully merging this pull request may close these issues.

Prevent a user from voting if he delegated his vote
2 participants