correction de la règle d'accès

This commit is contained in:
Jean-Marie Favreau 2024-04-16 11:52:56 +02:00
parent 6bcc72884d
commit 20213150ae

View File

@ -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'