Browse Source

Le droit add_facture englobe buy_every_article et use_every_payment

fix_front_profil
Hugo LEVY-FALK 8 years ago
parent
commit
2263b97d78
  1. 6
      cotisations/models.py

6
cotisations/models.py

@ -565,7 +565,8 @@ class Article(RevMixin, AclMixin, models.Model):
""" """
return ( return (
self.available_for_everyone 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.") _("You cannot buy this Article.")
) )
@ -701,7 +702,8 @@ class Paiement(RevMixin, AclMixin, models.Model):
""" """
return ( return (
self.available_for_everyone 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.") _("You cannot use this Payment.")
) )

Loading…
Cancel
Save