From 67f204b7bf9ce68c685af58bb2efb555164edf0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 4 Sep 2013 17:43:08 +0200 Subject: [PATCH 1/1] Hide polls from post form for non superusers --- forum/templates/pybb/post_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/templates/pybb/post_form.html b/forum/templates/pybb/post_form.html index 0ac465b..5db31a4 100644 --- a/forum/templates/pybb/post_form.html +++ b/forum/templates/pybb/post_form.html @@ -27,7 +27,7 @@ {% endfor %} - {% if form.poll_type %} + {% if form.poll_type and request.user.is_superuser %} {% include "pybb/poll_edit_form.html" %} {% endif %} {% include "pybb/attachments_formset.html" %} -- 2.20.1