summaryrefslogtreecommitdiffstats
path: root/idp/extra/modules/identities_ui.ptl
diff options
context:
space:
mode:
Diffstat (limited to 'idp/extra/modules/identities_ui.ptl')
-rw-r--r--idp/extra/modules/identities_ui.ptl4
1 files changed, 2 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):