Skip to content

Commit

Permalink
fix anonymous event detail call
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jan 7, 2025
1 parent 9f38119 commit 432be05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ephios/core/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def activate(self):
class ParticipationQuerySet(PolymorphicQuerySet):

def viewable_by(self, user):
if user.is_anonymous:
return self.none()
viewable_events = get_objects_for_user(user, "core.view_event")
viewable_userprofiles = get_objects_for_user(user, "core.view_userprofile")
editable_events = get_objects_for_user(user, "core.change_event")
Expand Down
1 change: 1 addition & 0 deletions ephios/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% load settings_extras %}
{% load i18n %}
{% load static %}
{% load compress %}
Expand Down

0 comments on commit 432be05

Please sign in to comment.