def acces_abf(self, action, request):
user_groups = [g.name for g in request.user.groups.all()]
- return groups.ACCIOR in user_groups or groups.DRH_NIVEAU_1 in user_groups \
- or groups.DRH_NIVEAU_2 in user_groups
+ return (
+ groups.ACCIOR in user_groups or
+ groups.DRH_NIVEAU_1 in user_groups or
+ groups.DRH_NIVEAU_2 in user_groups
+ )
def acces_finance(self, action, request):
user_groups = [g.name for g in request.user.groups.all()]
def acces_haute_direction(self, action, request):
user_groups = [g.name for g in request.user.groups.all()]
- return groups.FINANCE in user_groups or groups.DRH_NIVEAU_1 in user_groups \
- or groups.DRH_NIVEAU_2 in user_groups
+ return (
+ groups.FINANCE in user_groups or
+ groups.ABF in user_groups or
+ groups.DRH_NIVEAU_1 in user_groups or
+ groups.DRH_NIVEAU_2 in user_groups
+ )
def acces_region_finalisation(self, action, request):
user_groups = [g.name for g in request.user.groups.all()]