summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service/Vote.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/Service/Vote.php')
-rw-r--r--src/SemanticScuttle/Service/Vote.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SemanticScuttle/Service/Vote.php b/src/SemanticScuttle/Service/Vote.php
index 7adf549..6db940c 100644
--- a/src/SemanticScuttle/Service/Vote.php
+++ b/src/SemanticScuttle/Service/Vote.php
@@ -221,7 +221,9 @@ class SemanticScuttle_Service_Vote extends SemanticScuttle_DbService
*/
public function vote($bookmark, $user, $vote = 1)
{
- //FIXME: check if voting is enabled (global conf var)
+ if ($GLOBALS['enableVoting'] == false) {
+ return false;
+ }
if ($this->hasVoted($bookmark, $user)) {
return false;