Commit 2263b97d authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

Le droit add_facture englobe buy_every_article et use_every_payment

parent 899cd863
......@@ -565,7 +565,8 @@ class Article(RevMixin, AclMixin, models.Model):
"""
return (
self.available_for_everyone
or user.has_perm('cotisations.buy_every_article'),
or user.has_perm('cotisations.buy_every_article')
or user.has_perm('cotisations.add_facture'),
_("You cannot buy this Article.")
)
......@@ -701,7 +702,8 @@ class Paiement(RevMixin, AclMixin, models.Model):
"""
return (
self.available_for_everyone
or user.has_perm('cotisations.use_every_payment'),
or user.has_perm('cotisations.use_every_payment')
or user.has_perm('cotisations.add_facture'),
_("You cannot use this Payment.")
)
......
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