From bfc986a66e963ed7be8819c6a1946b6d56312cec Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 21 Mar 2018 15:28:58 +0100 Subject: [PATCH] Fix everyone can vote Signed-off-by: Thomas Citharel --- studs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studs.php b/studs.php index 531bf13..f202c4a 100644 --- a/studs.php +++ b/studs.php @@ -168,7 +168,7 @@ if ($accessGranted) { try { $result = $pollService->addVote($poll_id, $name, $choices, $slots_hash); if ($result) { - if ($poll->editable === Editable::EDITABLE_BY_OWN) { + if (intval($poll->editable) === Editable::EDITABLE_BY_OWN) { $editedVoteUniqueId = $result->uniqId; $message = getMessageForOwnVoteEditableVote($sessionService, $smarty, $editedVoteUniqueId, $config['use_smtp'], $poll_id, $name); } else {