From: Aleksander Ɓukasz Date: Wed, 4 Sep 2013 15:43:08 +0000 (+0200) Subject: Hide polls from post form for non superusers X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/67f204b7bf9ce68c685af58bb2efb555164edf0b?ds=inline Hide polls from post form for non superusers --- 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" %}