From: Alexander Ebert Date: Wed, 25 Feb 2015 12:45:35 +0000 (+0100) Subject: Fixed permission for public polls not being considered for display X-Git-Tag: 2.1.0~26^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=299ffd927278f494a58dfe88dfb2188a2761a760;p=GitHub%2FWoltLab%2FWCF.git Fixed permission for public polls not being considered for display The permission is correctly enforced, but the option was available in the template nonetheless. --- diff --git a/com.woltlab.wcf/coreObject.xml b/com.woltlab.wcf/coreObject.xml index fec7b8fbd2..c9c74f3afd 100644 --- a/com.woltlab.wcf/coreObject.xml +++ b/com.woltlab.wcf/coreObject.xml @@ -61,5 +61,9 @@ + + + + diff --git a/com.woltlab.wcf/templates/__messageFormPoll.tpl b/com.woltlab.wcf/templates/__messageFormPoll.tpl index 608aae0664..78a905e729 100644 --- a/com.woltlab.wcf/templates/__messageFormPoll.tpl +++ b/com.woltlab.wcf/templates/__messageFormPoll.tpl @@ -65,7 +65,7 @@
- {if !$pollID} + {if !$pollID && $__wcf->getPollManager()->canStartPublicPoll()}