Fix de bug
authorBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Thu, 28 Mar 2013 17:03:22 +0000 (13:03 -0400)
committerBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Thu, 28 Mar 2013 17:03:22 +0000 (13:03 -0400)
project/dae/workflow.py

index d4bac1d..6e983be 100644 (file)
@@ -232,8 +232,11 @@ class PosteWorkflow(WorkflowMixin):
 
     def acces_abf(self, action, request):
         user_groups = [g.name for g in request.user.groups.all()]
-        return groups.ACCIOR in user_groups or groups.DRH_NIVEAU_1 in user_groups \
-                or groups.DRH_NIVEAU_2 in user_groups
+        return (
+            groups.ACCIOR in user_groups or
+            groups.DRH_NIVEAU_1 in user_groups or
+            groups.DRH_NIVEAU_2 in user_groups
+            )
 
     def acces_finance(self, action, request):
         user_groups = [g.name for g in request.user.groups.all()]
@@ -242,8 +245,12 @@ class PosteWorkflow(WorkflowMixin):
 
     def acces_haute_direction(self, action, request):
         user_groups = [g.name for g in request.user.groups.all()]
-        return groups.FINANCE in user_groups or groups.DRH_NIVEAU_1 in user_groups \
-                or groups.DRH_NIVEAU_2 in user_groups
+        return (
+            groups.FINANCE in user_groups or
+            groups.ABF in user_groups or
+            groups.DRH_NIVEAU_1 in user_groups or
+            groups.DRH_NIVEAU_2 in user_groups
+            )
 
     def acces_region_finalisation(self, action, request):
         user_groups = [g.name for g in request.user.groups.all()]