Commit ad3c83d7 authored by Daniel STAN's avatar Daniel STAN

impressions: is_imprimeur()-> auth.crans_imprimeur

parent 82b0078d
......@@ -68,11 +68,7 @@ def get_login(request):
def is_imprimeur(request):
"""Renvoie True si l'utilisateur connecté à les droits imprimeurs"""
luser = conn_pool.get_user(request.user)
li = False
if "Imprimeur" in luser['droits']:
li = True
return li
return request.user.has_perm('auth.crans_imprimeur')
def get_solde(request):
luser = conn_pool.get_user(request.user)
......
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