Commit 84b0b5b7 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix/events-anonymous-user' into 'master'

Fix event pages when user is not logged in

See merge request !666

(cherry picked from commit 5e7f90cf)

19664f2c Fix event pages when user is not logged in
parent d7bc5af8
...@@ -48,7 +48,7 @@ class EventDetail(DetailView): ...@@ -48,7 +48,7 @@ class EventDetail(DetailView):
event=event, event=event,
member=self.request.member member=self.request.member
) )
except (Registration.DoesNotExist, AttributeError): except (Registration.DoesNotExist, TypeError):
pass pass
context['permissions'] = services.event_permissions( context['permissions'] = services.event_permissions(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment