1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Disallow ballot stuffing

This commit is contained in:
Karl Vollmer 2011-01-13 08:33:40 -04:00
parent b62ba121d6
commit fc355baf67

View file

@ -34,7 +34,10 @@ switch ($_REQUEST['action']) {
$show_browse = true;
break;
case 'add_vote':
$democratic->add_vote($_REQUEST['object_id'],$_REQUEST['type']);
// 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':