From 4d45b3dbc7d7549e8f87fe4ab8b11c76d6d4b72e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 27 May 2014 16:13:28 -0400 Subject: [PATCH] Show the Save button only if it useful If the user cannot perform any action there is no reason to show the save button. Signed-off-by: Simo Sorce --- templates/admin/providers/saml2_sp.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/admin/providers/saml2_sp.html b/templates/admin/providers/saml2_sp.html index 50d38ed..0b7385b 100644 --- a/templates/admin/providers/saml2_sp.html +++ b/templates/admin/providers/saml2_sp.html @@ -52,10 +52,12 @@ {% endif %} - - Back + {% if user.name == data.owner or user.is_admin %} + + {% endif %} + Back {% endblock %} -- 2.20.1