Fix naming bug in streams_menu template tag

- Legacy-Id: 6257
This commit is contained in:
Ole Laursen 2013-09-24 17:32:41 +00:00
parent 8bc5df166b
commit 2e152bbc9c

View file

@ -18,7 +18,7 @@ def streams_menu(context):
streams = StreamName.objects.exclude(slug="legacy")
if has_role(user, "Secretariat"):
editable_stream = streams
editable_streams.extend(streams)
else:
acronyms = Group.objects.filter(acronym__in=(s.slug for s in streams),
role__name="chair",
@ -28,4 +28,4 @@ def streams_menu(context):
if s.slug in acronyms:
editable_streams.append(s)
return { 'editable_streams': streams }
return { 'editable_streams': editable_streams }