From 73212d6e3fadc53e988164e03c8e3f2def1c45c6 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 2 Nov 2009 09:36:23 +0000 Subject: allow vote changes git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@495 b3834d28-1941-0410-a4f8-b48e95affb8f --- tests/VoteTest.php | 2 +- www/vote.php | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/VoteTest.php b/tests/VoteTest.php index cb50aad..032ec29 100644 --- a/tests/VoteTest.php +++ b/tests/VoteTest.php @@ -443,7 +443,7 @@ class VoteTest extends TestBase /** - * Verify that changing the vote from postitive to positive + * Verify that changing the vote from negative to negative * has no strange effects * * @return void diff --git a/www/vote.php b/www/vote.php index 406b7d0..20e77fc 100644 --- a/www/vote.php +++ b/www/vote.php @@ -57,13 +57,6 @@ if (!isset($GLOBALS['lastUrl']) || $GLOBALS['lastUrl'] == '') { $from = $GLOBALS['lastUrl']; -if ($vs->hasVoted($bookmark, $user)) { - //already voted - header('HTTP/1.0 412 Precondition failed'); - echo 'Bookmark has been already voted for'; - exit(6); -} - $vs->vote($bookmark, $user, $type == 'for' ? 1 : -1); if (isset($GLOBALS['ajaxRequest']) && $GLOBALS['ajaxRequest']) { -- cgit v1.2.3