Principle: limit user's votes to 10.
Modules used: Voting API, Rate (or maybe Plus1)
Context: Users can vote on projects with 10 possible votes to distribut on all projects, by 1 to 10 votes on each project of their choices, up to a total of 10 votes.
When a user has distributed 10 votes, he loses the permission to vote. To swith the permission with rules, I create a role "Voter". All users have the role by default.
At that point, I have this:
- Event : content is viewed (of type project)
- Condition : site:current-user:uid equals vote:uid
//And now I'd like to say something like "AND vote:uid appears 10 times in the 'votingapi_votes'.'uid' SO
- Action : Add/remove user role to simple AU (without vote permission)
So how to compare with a rule condition vote:uid to 10 instances?