From 20213150ae464c2e13882c0b98d5c6b7af42265b Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Tue, 16 Apr 2024 11:52:56 +0200 Subject: [PATCH] =?UTF-8?q?correction=20de=20la=20r=C3=A8gle=20d'acc=C3=A8?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index 6ce93af..084a011 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -231,7 +231,7 @@ class StaticContentUpdateView(SuccessMessageMixin, PermissionRequiredMixin, Logi class EventUpdateView(SuccessMessageMixin, PermissionRequiredMixin, LoginRequiredMixin, UpdateView): model = Event - permission_required = ("agenda_culturel.changes_event") + permission_required = ("agenda_culturel.change_event") form_class = EventForm success_message = _('The event has been successfully modified.') @@ -267,7 +267,7 @@ class EventDetailView(UserPassesTestMixin, DetailView): class EventModerateView(SuccessMessageMixin, PermissionRequiredMixin, LoginRequiredMixin, UpdateView): model = Event - permission_required = ["agenda_culturel.changes_event", "use_moderation_question"] + permission_required = ["agenda_culturel.change_event", "use_moderation_question"] success_message = _('The event has been successfully modified.') form_class = ModerateForm template_name = 'agenda_culturel/event_moderation_form.html'