correction de la règle d'accès
This commit is contained in:
parent
6bcc72884d
commit
20213150ae
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user