Merge branch 'dae' into dev
[auf_rh_dae.git] / project / dae / workflow.py
index 43b7e6e..57ecd9a 100644 (file)
@@ -243,11 +243,14 @@ class PosteWorkflow(WorkflowMixin):
 
     def acces_region_finalisation(self, action, request):
         for g in request.user.groups.all():
-            if g in (grp_administrateurs, grp_drh,):
+            if g in (grp_haute_direction, grp_drh,):
                 return True
 
     def acces_drh_finalisation(self, action, request):
-        return self.acces_administrateur
+        for g in request.user.groups.all():
+            if g in (grp_drh,):
+                return True
+        return False
 
     def acces_demande_justif(self, action, request):
         groups = set(request.user.groups.all())