#1493
[auf_rh_dae.git] / project / dae / utils.py
index a045ad7..b7ecc9c 100644 (file)
@@ -14,10 +14,10 @@ def get_employe_from_user(user):
 
 def is_user_dans_service(user):
     employe = get_employe_from_user(user)
-    return employe.implantation.bureau_rattachement_id == -1
+    return employe.implantation_id in (15, 19)
 
 def is_user_dans_region(user):
     employe = get_employe_from_user(user)
-    return employe.implantation.bureau_rattachement_id != -1
+    return not is_user_dans_service(user)