Closed ineiti closed 1 year ago
I'll go check
It's not the candidates, but if you're part of the admins or voters.
Yes, I re-read the comment, at least in the code there does not seem to be a filter on whether one is part of the voters.
In any case, it wouldn't make much sense if an admin couldn't see all elections. I'll test on an example to make sure.
only one voter (and one candidate! :rofl: ), and I'm not part of the voters
if we are looking for things to improve, I have access to the voting view, and can try to cast a ballot (which is rejected in the backend though)
Great - thanks for checking that. So we're good. I wouldn't change too much at this stage. Let's wait what Pierluca says with regards to giving a hand on the D-voting project.
During the weekend I had the following thought: what if the condition you removed is about showing elections where the admin is not part of the election? Currently we always had test elections, where the admin was part, so it showed up twice. But what about an election where the admin is not part of the voters? Wouldn’t it be missing in the “Your elections”, and then it couldn’t be finalised? So perhaps the condition needs to be updated:
Can you check if I got that right? And if I did, can you please update the code accordingly?