Skip to content
Snippets Groups Projects
Verified Commit 2f88a0b7 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix public events calendarjs API

parent 9be88633
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,9 @@ class EventCalenderJSSerializer(CalenderJSSerializer):
def _class_names(self, instance):
class_names = ["regular-event"]
if services.is_user_registered(self.context["member"], instance):
if self.context["member"] and services.is_user_registered(
self.context["member"], instance
):
class_names.append("has-registration")
return class_names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment