diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index bc83d9a..e99577e 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -210,7 +210,7 @@ class EventDetailView(UserPassesTestMixin, DetailView): template_name = "agenda_culturel/page-event.html" def test_func(self): - return self.request.user.is_authenticated or self.get_object().status != Event.STATUS.PUBLISHED + return self.request.user.is_authenticated or self.get_object().status == Event.STATUS.PUBLISHED @login_required(login_url="/accounts/login/") def change_status_event(request, pk, status):