Add forgotten kfet_password decorators

This commit is contained in:
Ludovic Stephan 2019-12-02 20:41:19 +01:00
parent 727b3042a1
commit a4fdb578bc

View file

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