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:
ef71b85
)
relock permissions régionales
author
Davin Baragiotta
<davin.baragiotta@auf.org>
Tue, 29 May 2012 20:48:27 +0000
(16:48 -0400)
committer
Davin BARAGIOTTA
<davin.baragiotta@auf.org>
Tue, 29 May 2012 20:48:27 +0000
(16:48 -0400)
project/rh/admin.py
patch
|
blob
|
blame
|
history
diff --git
a/project/rh/admin.py
b/project/rh/admin.py
index
9fd1a97
..
8b885c8
100644
(file)
--- a/
project/rh/admin.py
+++ b/
project/rh/admin.py
@@
-127,6
+127,10
@@
class ProtectRegionMixin(object):
def has_change_permission(self, request, obj=None):
user_groups = request.user.groups.all()
+ # Lock pour autoriser uniquement les DRH à utiliser RH
+ if not in_drh_or_admin(request.user):
+ return False
+
if len(user_groups) == 0 and not request.user.is_superuser:
return False