From f5414b18d229b578852f02d9ab135ca79994c141 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sun, 18 Mar 2012 14:35:01 +0100 Subject: [PATCH] fixed error in projector Control --- openslides/projector/views.py | 1 + openslides/system/views.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openslides/projector/views.py b/openslides/projector/views.py index 6a699f686..c2d51a693 100644 --- a/openslides/projector/views.py +++ b/openslides/projector/views.py @@ -32,6 +32,7 @@ from openslides.projector.signals import projector_messages class ControlView(TemplateView): template_name = 'projector/control.html' + permission_required = 'projector.can_manage_projector' def get_context_data(self, **kwargs): context = super(ControlView, self).get_context_data(**kwargs) diff --git a/openslides/system/views.py b/openslides/system/views.py index 552d23a6d..df862b3a3 100644 --- a/openslides/system/views.py +++ b/openslides/system/views.py @@ -93,7 +93,7 @@ class Config(FormView): @receiver(template_manipulation, dispatch_uid="system_base_system") -def set_submenu(sender, request, **kwargs): +def set_submenu(sender, request, context, **kwargs): selected = True if request.path == reverse('config_general') else False menu_links = [ (reverse('config_general'), _('General'), selected), @@ -111,6 +111,6 @@ def set_submenu(sender, request, **kwargs): (reverse('config_%s' % appname), _(appname.title()), selected) ) - kwargs['context'].update({ + context.update({ 'menu_links': menu_links, })