From 299ffd927278f494a58dfe88dfb2188a2761a760 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Feb 2015 13:45:35 +0100 Subject: [PATCH] Fixed permission for public polls not being considered for display The permission is correctly enforced, but the option was available in the template nonetheless. --- com.woltlab.wcf/coreObject.xml | 4 ++++ com.woltlab.wcf/templates/__messageFormPoll.tpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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()}
-- 2.20.1