toulouse-maelis: check person_id on subscription endpoints (#76218) #176
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/76218-parsifal-check-person_id-on-add-basket"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parce que Maélis ne détecte pas,
vérifier que la personne appartient bien à la famille.
Fait pour l'inscription via le panier et l'inscription directe.
@ -3209,6 +3209,7 @@ class ToulouseMaelis(BaseResource, HTTPResource):
family_id=None,
):
family_id = family_id or self.get_link(NameID).family_id
assert self.get_rl_or_child_raw(family_id, post_data['person_id'])
un peu moche le assert dans le code, on peut s'en passer, non ?
Si, merci.
Je pensais que c'était requis par Pylint, j'ai confondu avec :
assert family_id or self.get_link(NameID)
73303c7cd5
to4b6ceac39e