Updated permissions.
This commit is contained in:
parent
d1d0e7e9b4
commit
57ea883d51
@ -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"),
|
||||
)
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user