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:
22e06da
)
[#3303] org employé all employé pour rég
author
Davin Baragiotta
<davin.baragiotta@auf.org>
Fri, 8 Jun 2012 12:23:32 +0000
(08:23 -0400)
committer
Davin BARAGIOTTA
<davin.baragiotta@auf.org>
Fri, 8 Jun 2012 12:23:32 +0000
(08:23 -0400)
project/rh/admin.py
patch
|
blob
|
blame
|
history
diff --git
a/project/rh/admin.py
b/project/rh/admin.py
index
d2c57a1
..
659c353
100644
(file)
--- a/
project/rh/admin.py
+++ b/
project/rh/admin.py
@@
-637,6
+637,15
@@
class EmployeProxyAdmin(EmployeAdmin):
super(EmployeProxyAdmin, self).__init__(*args, **kwargs)
self.list_display_links = (None, )
+ def queryset(self, request):
+ qs = super(ProtectRegionMixin, self).queryset(request)
+
+ if in_drh_or_admin(request.user) or \
+ user_gere_obj_de_sa_region(request.user):
+ return qs
+
+ return qs.none()
+
def has_add_permission(self, obj):
return False