mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Disallow ballot stuffing
This commit is contained in:
parent
b62ba121d6
commit
fc355baf67
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ switch ($_REQUEST['action']) {
|
|||
$show_browse = true;
|
||||
break;
|
||||
case 'add_vote':
|
||||
// Only add the vote if they haven't already voted
|
||||
if (!$democratic->has_vote($_GET['object_id'],$_GET['type'])) {
|
||||
$democratic->add_vote($_REQUEST['object_id'],$_REQUEST['type']);
|
||||
}
|
||||
$show_browse = true;
|
||||
break;
|
||||
case 'delete':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue