summaryrefslogtreecommitdiffstats
path: root/idp/extra/modules/identities_ui.ptl
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@0d.be>2008-04-24 14:44:25 (GMT)
committerFrederic Peters <fpeters@0d.be>2008-04-24 14:44:25 (GMT)
commit49ce78d6fef120cd1c15b2cd3163d5ec8da3b669 (patch)
treec2202792dd31fba21661d2f77dd04e3eda65b840 /idp/extra/modules/identities_ui.ptl
parentbc01959f25fef60acd507bc9835a5509fb45c29a (diff)
downloadpratic-49ce78d6fef120cd1c15b2cd3163d5ec8da3b669.zip
pratic-49ce78d6fef120cd1c15b2cd3163d5ec8da3b669.tar.gz
pratic-49ce78d6fef120cd1c15b2cd3163d5ec8da3b669.tar.bz2
only manage authorization for saml services
Diffstat (limited to 'idp/extra/modules/identities_ui.ptl')
-rw-r--r--idp/extra/modules/identities_ui.ptl11
1 files changed, 10 insertions, 1 deletions
diff --git a/idp/extra/modules/identities_ui.ptl b/idp/extra/modules/identities_ui.ptl
index 3dd8fae..ef35a4c 100644
--- a/idp/extra/modules/identities_ui.ptl
+++ b/idp/extra/modules/identities_ui.ptl
@@ -252,7 +252,16 @@ class IdentitiesDirectory(Directory):
'<thead>'
'<tr>'
'<td></td>'
+ saml_services = []
for service in services:
+ if service.cdg59metadataURL:
+ saml_services.append(service)
+ else:
+ service_type = directory.get_service(service.cdg59serviceType)
+ if service_type.cdg59metadataURL:
+ saml_services.append(service)
+ else:
+ continue
'<th>%s</th>' % service.name
'</tr>'
'</thead>'
@@ -263,7 +272,7 @@ class IdentitiesDirectory(Directory):
else:
'<tr>'
'<th>%s</th>' % agent.cn
- for service in services:
+ for service in saml_services:
'<td>'
'<input name="%s" type="checkbox" value="%s"' % (agent.username, service.cdg59siid)
if service.cdg59siid in agent.cdg59serviceAccesses: