From 6cb7be03fdd8c30c4cc25cc3d83b8c439e177a37 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Fri, 15 Dec 2023 12:03:46 +0100 Subject: Add scope-management for non-admin users Add scope-management menu with limited commands for non-admin users; commands allowed are add/edit/edit/delete/import client(s) --- ogcp/templates/base.html | 2 +- ogcp/templates/scopes.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index 39680c3..8906fd9 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -33,10 +33,10 @@ - {% if current_user.admin %} + {% if current_user.admin %} diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index 9b93971..8a0701f 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -16,6 +16,7 @@ {% endblock %} {% block commands %} + {% if current_user.is_authenticated %} + {% endif %} + {% if current_user.admin %} + {% endif %} {% if btn_back %}