Check if current user is admin BEFORE check editedVoteUniqueId
This commit is contained in:
parent
a19cc5334c
commit
510b797f85
@ -98,8 +98,8 @@
|
|||||||
{if $active && !$expired &&
|
{if $active && !$expired &&
|
||||||
(
|
(
|
||||||
$poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL')
|
$poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL')
|
||||||
or ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_OWN') && $editedVoteUniqueId == $vote->uniqId)
|
|
||||||
or $admin
|
or $admin
|
||||||
|
or ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_OWN') && $editedVoteUniqueId == $vote->uniqId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,8 +149,8 @@
|
|||||||
{if $active && !$expired &&
|
{if $active && !$expired &&
|
||||||
(
|
(
|
||||||
$poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL')
|
$poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL')
|
||||||
or ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_OWN') && $editedVoteUniqueId == $vote->uniqId)
|
|
||||||
or $admin
|
or $admin
|
||||||
|
or ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_OWN') && $editedVoteUniqueId == $vote->uniqId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
<td class="hidden-print">
|
<td class="hidden-print">
|
||||||
|
Loading…
Reference in New Issue
Block a user