diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2023-12-15 12:03:46 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-15 12:06:27 +0100 |
commit | 6cb7be03fdd8c30c4cc25cc3d83b8c439e177a37 (patch) | |
tree | ab4a2dde45fd879c08d452143954ae7fa4abb2b0 /ogcp/templates/scopes.html | |
parent | a9d367e795a00358c8c34e205ee17beddbcd00dd (diff) |
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)
Diffstat (limited to 'ogcp/templates/scopes.html')
-rw-r--r-- | ogcp/templates/scopes.html | 4 |
1 files changed, 4 insertions, 0 deletions
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 %} <div class="dropdown btn"> <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_client %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false"> {{ _('Client') }} @@ -31,6 +32,8 @@ form="scopesForm" formaction="{{ url_for('action_client_delete') }}" formmethod="get"> </div> </div> + {% endif %} + {% if current_user.admin %} <div class="dropdown btn"> <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_room %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false"> {{ _('Room') }} @@ -53,6 +56,7 @@ form="scopesForm" formaction="{{ url_for('action_center_delete') }}" formmethod="get"> </div> </div> + {% endif %} {% if btn_back %} <button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()"> {{ _("Back") }} |