# TRAITEMENT DRH
user_groupes = [g.name for g in request.user.groups.all()]
- if groups.DRH_NIVEAU_1 in user_groupes:
+ if groups.DRH_NIVEAU_1 in user_groupes or \
+ groups.DRH_NIVEAU_2 in user_groupes:
q = Q()
return [('', '----------')] + \
[(i.id, unicode(i), )for i in ref.Implantation.objects.filter(q)]
)
# TRAITEMENT DRH
user_groupes = [g.name for g in request.user.groups.all()]
- if groups.DRH_NIVEAU_1 in user_groupes:
+ if groups.DRH_NIVEAU_1 in user_groupes or \
+ groups.DRH_NIVEAU_2 in user_groupes:
q_dae_region_service = Q()
q_rh_region_service = Q()