From e085556def93dfecbca8032329ab1031e561facc Mon Sep 17 00:00:00 2001 From: Skia Date: Wed, 26 Jul 2017 16:55:00 +0200 Subject: [PATCH] sas: allow ancient subscriber to add people on pictures Signed-off-by: Skia --- sas/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sas/views.py b/sas/views.py index 1dc5b202..10ed2ff7 100644 --- a/sas/views.py +++ b/sas/views.py @@ -144,7 +144,7 @@ class PictureView(CanViewMixin, DetailView, FormMixin): def post(self, request, *args, **kwargs): self.object = self.get_object() self.form = self.get_form() - if request.user.is_authenticated() and request.user.is_in_group('ae-membres'): + if request.user.is_authenticated() and request.user.was_subscribed: if self.form.is_valid(): for uid in self.form.cleaned_data['users']: u = User.objects.filter(id=uid).first()