From a4fdb578bce160dd8a87d25bbe896755f2b5fe97 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Mon, 2 Dec 2019 20:41:19 +0100 Subject: [PATCH] Add forgotten kfet_password decorators --- kfet/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kfet/views.py b/kfet/views.py index c5d5082b..76c500fd 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -559,6 +559,7 @@ class CheckoutRead(DetailView): # Checkout - Update +@method_decorator(kfet_password_auth, name="dispatch") class CheckoutUpdate(SuccessMessageMixin, UpdateView): model = Checkout template_name = "kfet/checkout_update.html" @@ -761,6 +762,7 @@ class ArticleList(ListView): # Article - Create +@method_decorator(kfet_password_auth, name="dispatch") class ArticleCreate(SuccessMessageMixin, CreateView): model = Article template_name = "kfet/article_create.html" @@ -826,6 +828,7 @@ class ArticleRead(DetailView): # Article - Update +@method_decorator(kfet_password_auth, name="dispatch") class ArticleUpdate(SuccessMessageMixin, UpdateView): model = Article template_name = "kfet/article_update.html" @@ -1509,6 +1512,7 @@ class SettingsList(TemplateView): config_list = permission_required("kfet.see_config")(SettingsList.as_view()) +@method_decorator(kfet_password_auth, name="dispatch") class SettingsUpdate(SuccessMessageMixin, FormView): form_class = KFetConfigForm template_name = "kfet/settings_update.html"