Skip to content
Snippets Groups Projects
Commit 0b958a29 authored by Roang's avatar Roang
Browse files

Update view filter for AssemblyListView

The AssemblyListView should not show assemblies to staff that they are
not member of.

Fixes #596
parent 75a9979a
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ class AssemblyListView(ConferenceLoginRequiredMixin, View): ...@@ -32,7 +32,7 @@ class AssemblyListView(ConferenceLoginRequiredMixin, View):
def get(self, *args, **kwargs): def get(self, *args, **kwargs):
if self.request.user.is_authenticated: if self.request.user.is_authenticated:
myassemblies = list(Assembly.objects.associated_with_user(conference=self.conference, user=self.request.user)) myassemblies = list(Assembly.objects.associated_with_user(conference=self.conference, user=self.request.user, staff_can_see=False))
# remove stored backlink for assembly pages from the session if it is set, so the backlink will go to the overview, which is the default # remove stored backlink for assembly pages from the session if it is set, so the backlink will go to the overview, which is the default
self.request.session.pop('assembly_back', None) self.request.session.pop('assembly_back', None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment