Show participants pdf for users with see-particiants-permissions

This commit is contained in:
Emanuel Schuetze 2011-09-21 21:01:00 +02:00
parent d53c4ea5ba
commit 3c2cfe508a
2 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@
<li class="{% if request.path == url_usergroups %}selected{% endif %}"><a href="{% url user_group_overview %}">{%trans "All user groups" %}</a></li>
<li class="{% active request '/participant/group/new' %}"><a href="{% url user_group_new %}">{%trans "New user group" %}</a></li>
<li class="{% if request.path == url_userimport %}selected{% endif %}"><a href="{% url user_import %}"> {%trans 'Import participant' %}</a></li>
{% endif %}
{% if perms.participant.can_see_participant %}
<li><a href="{% url user_print %}"><img src="/static/images/icons/application-pdf.png"> {%trans 'Print participant list' %}</a></li>
{% endif %}
{% if perms.participant.can_manage_participant %}
<li><a href="{% url user_gen_passwords %}"><img src="/static/images/icons/quickopen.png"> {% trans 'Generate first time passwords' %}</a></li>
<li><a href="{% url print_passwords %}"><img src="/static/images/icons/application-pdf.png"> {% trans 'Print first time passwords' %}</a></li>
{% endif %}

View File

@ -250,7 +250,7 @@ def print_agenda(request):
return response
@permission_required('participant.can_manage_participant')
@permission_required('participant.can_see_participant')
def print_userlist(request):
response = HttpResponse(mimetype='application/pdf')
filename = u'filename=%s.pdf;' % _("Participant-list")