fixed error in projector Control
This commit is contained in:
parent
282778c8a0
commit
f5414b18d2
@ -32,6 +32,7 @@ from openslides.projector.signals import projector_messages
|
|||||||
|
|
||||||
class ControlView(TemplateView):
|
class ControlView(TemplateView):
|
||||||
template_name = 'projector/control.html'
|
template_name = 'projector/control.html'
|
||||||
|
permission_required = 'projector.can_manage_projector'
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(ControlView, self).get_context_data(**kwargs)
|
context = super(ControlView, self).get_context_data(**kwargs)
|
||||||
|
@ -93,7 +93,7 @@ class Config(FormView):
|
|||||||
|
|
||||||
|
|
||||||
@receiver(template_manipulation, dispatch_uid="system_base_system")
|
@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
|
selected = True if request.path == reverse('config_general') else False
|
||||||
menu_links = [
|
menu_links = [
|
||||||
(reverse('config_general'), _('General'), selected),
|
(reverse('config_general'), _('General'), selected),
|
||||||
@ -111,6 +111,6 @@ def set_submenu(sender, request, **kwargs):
|
|||||||
(reverse('config_%s' % appname), _(appname.title()), selected)
|
(reverse('config_%s' % appname), _(appname.title()), selected)
|
||||||
)
|
)
|
||||||
|
|
||||||
kwargs['context'].update({
|
context.update({
|
||||||
'menu_links': menu_links,
|
'menu_links': menu_links,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user