Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
latoilescoute-dev
scoodle
Commits
bfc986a6
Commit
bfc986a6
authored
Mar 21, 2018
by
Thomas Citharel
Browse files
Fix everyone can vote
Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
4e021c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
studs.php
View file @
bfc986a6
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment