8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Le droit add_facture englobe buy_every_article et use_every_payment

This commit is contained in:
Hugo LEVY-FALK 2018-07-15 20:22:48 +02:00
parent 899cd863eb
commit 2263b97d78

View file

@ -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.")
)