Commit e085556d authored by Skia's avatar Skia
Browse files

sas: allow ancient subscriber to add people on pictures

Signed-off-by: Skia's avatarSkia <>
parent 8501df0b
Pipeline #1105 passed with stage
in 6 minutes and 1 second
......@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment