Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to prevent self-vote from the node author. I skimmed all the code but have no idea how to work around this issue.
Comments
Comment #1
Chill35 CreditAttribution: Chill35 commentedA node author can vote once on his content.
Believe it or not, I had at some point someone sponsor the development of this module with a small amount of money, and he wanted authors to be able to vote once on their content. This wasn't possible before, and I made that possible.
You simply have to do a check before you store the vote in the code. If you propose a patch that makes this optional, I am willing to commit it.
Comment #2
manop CreditAttribution: manop commentedThank you for the answer. I don't know much about the coding. So I hid the arrow key instead by changing the line
to
It works okay for me now.
Comment #3
NancyDruCommitted to 6.x-2.x-dev. There is now an option for this.