Merge branch 'Aufinal/forgotten_decorators' into 'master'

Rajoute les décorateurs oubliés pour l'auth par mdp

See merge request klub-dev-ens/gestioCOF!389
This commit is contained in:
Martin Pepin 2019-12-11 19:10:19 +01:00
commit 71e3c210f2

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"
@ -1513,6 +1516,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"