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 (from parent 1:
a71e5ec
)
[#2193] Permettre à l'ACCIOR de voir tous les dossiers en cours de validation
author
Eric Mc Sween
<eric.mcsween@auf.org>
Mon, 7 Nov 2011 20:36:56 +0000
(15:36 -0500)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Mon, 7 Nov 2011 20:36:56 +0000
(15:36 -0500)
project/dae/managers.py
patch
|
blob
|
blame
|
history
diff --git
a/project/dae/managers.py
b/project/dae/managers.py
index
6abb6f7
..
8e54d12
100644
(file)
--- a/
project/dae/managers.py
+++ b/
project/dae/managers.py
@@
-59,7
+59,7
@@
class SecurityManager(models.Manager):
############################################
# TRAITEMENT NORMAL
############################################
# TRAITEMENT NORMAL
- ############################################
+ ############################################
# REGION
q = Q(**{ self.prefixe_implantation : employe.implantation.region })
# REGION
q = Q(**{ self.prefixe_implantation : employe.implantation.region })
@@
-72,25
+72,25
@@
class SecurityManager(models.Manager):
############################################
# TRAITEMENT ACCIOR
############################################
# TRAITEMENT ACCIOR
- ############################################
+ ############################################
if workflowed_model and grp_accior in user.groups.all():
if workflowed_model and grp_accior in user.groups.all():
- liste = liste | self.get_query_set().filter(Q(etat__in=(POSTE_ETAT_ACCIOR, DOSSIER_ETAT_ACCIOR,)))
+ liste = self.get_query_set().all()
############################################
# TRAITEMENT ABF
############################################
# TRAITEMENT ABF
- ############################################
+ ############################################
if workflowed_model and grp_abf in user.groups.all():
liste = self.get_query_set().all()
############################################
# TRAITEMENT HAUTE DIRECTION
if workflowed_model and grp_abf in user.groups.all():
liste = self.get_query_set().all()
############################################
# TRAITEMENT HAUTE DIRECTION
- ############################################
+ ############################################
if workflowed_model and grp_haute_direction in user.groups.all():
liste = self.get_query_set().all()
############################################
# TRAITEMENT DRH
if workflowed_model and grp_haute_direction in user.groups.all():
liste = self.get_query_set().all()
############################################
# TRAITEMENT DRH
- ############################################
+ ############################################
if grp_drh in user.groups.all():
liste = self.get_query_set().all()
if grp_drh in user.groups.all():
liste = self.get_query_set().all()