Updated permissions.

This commit is contained in:
Emanuel Schuetze 2011-09-04 12:33:06 +02:00
parent d1d0e7e9b4
commit 57ea883d51
4 changed files with 4 additions and 5 deletions

View File

@ -178,7 +178,7 @@ class Item(InheritanceCastModel):
permissions = (
('can_see_agenda', "Can see agenda"),
('can_manage_agenda', "Can manage agenda"),
('can_see_beamer', "Can see projector"),
('can_see_projector', "Can see projector"),
)

View File

@ -10,7 +10,7 @@
{% if perms.agenda.can_manage_agenda %}
<li class="{% active request '/item/new/' %}"><a href="{% url item_new 'ItemText' %}">{%trans "New item" %}</a></li>
{% endif %}
{% if perms.agenda.can_see_beamer %}
{% if perms.agenda.can_see_projector %}
<li><a href="{% url item_beamer %}"><img src="/static/images/icons/view-presentation.png"> {%trans 'Beamer view' %}</a></li>
{% endif %}
</ul>

View File

@ -47,7 +47,7 @@ def view(request, item_id):
context_instance=RequestContext(request))
@permission_required('agenda.can_see_beamer')
@permission_required('agenda.can_see_projector')
def beamer(request):
"""
Shows a active Slide.
@ -126,7 +126,6 @@ def assignment_votes(item):
else:
tmplist.append("-")
votes.append(tmplist)
return votes

View File

@ -163,7 +163,7 @@ def edit(request, application_id=None):
'application': application,
}
@permission_required('application.can_manage_application')
@template('application/view.html')
def delete(request, application_id):
"""