some permission problems

This commit is contained in:
Oskar Hahn 2012-04-15 12:52:59 +02:00
parent ae5c6b84a8
commit 6f0fd91ec2
3 changed files with 4 additions and 4 deletions

View File

@ -72,6 +72,8 @@
<a href="{% url application_poll_delete poll.id %}">
<img src="{% static 'images/icons/edit-delete.png' %}" title="{% trans 'Delete Vote' %}">
</a>
{% elif poll.has_votes %}
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
{% endif %}
<br>
{% if poll.has_votes %}

View File

@ -681,7 +681,6 @@ class ApplicationPDF(PDFView):
data.append([cell3a,cell3b])
poll_results = application.get_poll_results()
print poll_results
# voting results
if poll_results:
cell4a = []

View File

@ -52,8 +52,8 @@ import settings
from utils import render_to_forbitten
from openslides.utils.signals import template_manipulation
from pdf import firstPage, laterPages
from config.models import config
import settings
NO_PERMISSION_REQUIRED = 'No permission required'
@ -276,10 +276,9 @@ class FrontPage(TemplateView):
tab = mod.register_tab(self.request)
except (ImportError, AttributeError):
continue
if self.request.user.has_perm(tab.permission):
if tab.permission:
apps.append(tab)
context['apps'] = apps
#context['wellcome_text'] = config['wellcome_text']
return context