projets
/
auf_rh_dae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4bfc2a
)
Bugfix: la haute direction ne pouvait pas valider une DAE.
author
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 16 Nov 2011 19:19:39 +0000
(14:19 -0500)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 16 Nov 2011 19:19:39 +0000
(14:19 -0500)
project/dae/workflow.py
patch
|
blob
|
blame
|
history
diff --git
a/project/dae/workflow.py
b/project/dae/workflow.py
index
e310d6c
..
77ec343
100644
(file)
--- a/
project/dae/workflow.py
+++ b/
project/dae/workflow.py
@@
-242,11
+242,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())