Hide polls from post form for non superusers
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 4 Sep 2013 15:43:08 +0000 (17:43 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 4 Sep 2013 15:43:08 +0000 (17:43 +0200)
forum/templates/pybb/post_form.html

index 0ac465b..5db31a4 100644 (file)
@@ -27,7 +27,7 @@
       {% endfor %}
     </div>
 
-    {% 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" %}