Merge branch 'dae' into test
authorEric Mc Sween <eric.mcsween@auf.org>
Wed, 16 Nov 2011 19:20:37 +0000 (14:20 -0500)
committerEric Mc Sween <eric.mcsween@auf.org>
Wed, 16 Nov 2011 19:20:37 +0000 (14:20 -0500)
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())