summaryrefslogtreecommitdiffstats
path: root/idp/extra
diff options
context:
space:
mode:
Diffstat (limited to 'idp/extra')
-rw-r--r--idp/extra/modules/identities_ui.ptl4
-rw-r--r--idp/extra/modules/saml2.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/idp/extra/modules/identities_ui.ptl b/idp/extra/modules/identities_ui.ptl
index 4a31508..852620b 100644
--- a/idp/extra/modules/identities_ui.ptl
+++ b/idp/extra/modules/identities_ui.ptl
@@ -205,8 +205,8 @@ class IdentitiesDirectory(Directory):
'<p>'
'<a href="new">%s</a>' % _('Add a new Agent')
- if user.is_admin() or user.is_local_admin():
- ' <a href="authorizations">%s</a>' % _('Manage Authorizations')
+ if user.is_admin() or user.is_local_admin() and (self.collectivity.cn != 'admin'):
+ '- <a href="authorizations">%s</a>' % _('Manage Authorizations')
'</p>'
'<ul class="biglist">'
for agent in directory.get_agents(self.collectivity, sorted = True):
diff --git a/idp/extra/modules/saml2.py b/idp/extra/modules/saml2.py
index c86fd6c..f6f0089 100644
--- a/idp/extra/modules/saml2.py
+++ b/idp/extra/modules/saml2.py
@@ -15,6 +15,8 @@ def check_access_authorizations(provider_key):
return False
user = get_session().get_user_object()
+ if user.is_admin():
+ return True
collectivity = user.get_collectivity()
service_instances = directory.get_service_instances(collectivity)