[#2243] Correction du workflow
[auf_rh_dae.git] / project / dae / workflow.py
index a54f958..c33a02b 100644 (file)
@@ -241,13 +241,12 @@ class PosteWorkflow(WorkflowMixin):
         return False
 
     def acces_region_finalisation(self, action, request):
-        return self.acces_administrateur(action, request)
+        for g in user_groups:
+            if g in (grp_administrateurs, grp_drh,):
+                return True
 
     def acces_drh_finalisation(self, action, request):
-        for g in request.user.groups.all():
-            if g in (grp_haute_direction, grp_drh, ):
-                return True
-        return False
+        return self.acces_administrateur
 
     def acces_demande_justif(self, action, request):
         groups = set(request.user.groups.all())