projets
/
auf_rh_dae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
eb1fce0
)
Merge branch 'dae' into dev
author
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 16 Nov 2011 19:20:17 +0000
(14:20 -0500)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 16 Nov 2011 19:20:17 +0000
(14:20 -0500)
project/dae/workflow.py
patch
|
blob
|
blame
|
history
diff --git
a/project/dae/workflow.py
b/project/dae/workflow.py
index
43b7e6e
..
57ecd9a
100644
(file)
--- a/
project/dae/workflow.py
+++ b/
project/dae/workflow.py
@@
-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())