summaryrefslogtreecommitdiffstats
path: root/idp/extra/modules/identities_ui.ptl
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@0d.be>2008-09-08 08:46:19 (GMT)
committerFrederic Peters <fpeters@0d.be>2008-09-08 08:46:19 (GMT)
commit84d0f8ab10c1628b1e4634e5120aaed5ef073393 (patch)
treee08b1f7ebe0b9bdb2f10d04128320bbff55e1ae3 /idp/extra/modules/identities_ui.ptl
parent123053fd8fdbb5bb8a9487b74c3d7c6e09e7bfdb (diff)
downloadpratic-84d0f8ab10c1628b1e4634e5120aaed5ef073393.zip
pratic-84d0f8ab10c1628b1e4634e5120aaed5ef073393.tar.gz
pratic-84d0f8ab10c1628b1e4634e5120aaed5ef073393.tar.bz2
local admins are not authorized to edit sirh, first and last names
Diffstat (limited to 'idp/extra/modules/identities_ui.ptl')
-rw-r--r--idp/extra/modules/identities_ui.ptl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/identities_ui.ptl b/idp/extra/modules/identities_ui.ptl
index 2d0a72e..7fc8132 100644
--- a/idp/extra/modules/identities_ui.ptl
+++ b/idp/extra/modules/identities_ui.ptl
@@ -83,7 +83,7 @@ class AgentDirectory(Directory):
user = get_session().get_user_object()
form = Form(enctype='multipart/form-data')
for k, l, attrs in self.attrs:
- if k == 'cdg59isAdmin' and not user.is_admin():
+ if not user.is_admin() and k in ('cdg59agentSirhCode', 'sn', 'givenName'):
continue
if attrs.has_key('widget_class'):
widget_class = attrs.get('widget_class')