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:
0309aeb
)
permissions régionales ouvertes
author
Davin Baragiotta
<davin.baragiotta@auf.org>
Tue, 29 May 2012 20:54:25 +0000
(16:54 -0400)
committer
Davin BARAGIOTTA
<davin.baragiotta@auf.org>
Tue, 29 May 2012 20:54:25 +0000
(16:54 -0400)
project/rh/admin.py
patch
|
blob
|
blame
|
history
diff --git
a/project/rh/admin.py
b/project/rh/admin.py
index
8b885c8
..
9fd1a97
100644
(file)
--- a/
project/rh/admin.py
+++ b/
project/rh/admin.py
@@
-127,10
+127,6
@@
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