From b28e96e364bdf5ebc9021d21eb2720c74a931250 Mon Sep 17 00:00:00 2001 From: tncrdk Date: Sat, 13 Jan 2024 22:55:48 +0100 Subject: [PATCH] fixed typo in permissions_required field in mailfeed views --- nablapps/mailfeed/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nablapps/mailfeed/views.py b/nablapps/mailfeed/views.py index c53016aa..ede22aae 100644 --- a/nablapps/mailfeed/views.py +++ b/nablapps/mailfeed/views.py @@ -13,7 +13,7 @@ class MailFeedListView(PermissionRequiredMixin, ListView): """An overview of all mailfeeeds""" - permission_required = "Mailfeed.generate_mailfeeds" + permission_required = "mailfeed.generate_mailfeeds" model = Mailfeed template_name = "mailfeed/mailfeed_list.html" paginate_by = 100 @@ -26,7 +26,7 @@ def get_context_data(self, **kwargs): class CreateMailFeedView(PermissionRequiredMixin, View): """Create a new mailfeed""" - permission_required = "Mailfeed.generate_mailfeeds" + permission_required = "mailfeed.generate_mailfeeds" def get(self, request): mailfeed_form = MailFeedForm() @@ -126,7 +126,7 @@ def post(self, request, mailfeed_id: int, uuid: str): class MailFeedDetailView(PermissionRequiredMixin, DetailView): """Create and send emails to a mailfeed""" - permission_required = "Mailfeed.generate_mailfeeds" + permission_required = "mailfeed.generate_mailfeeds" def get(self, request, mailfeed_id: int): email_form = EmailForm()