From 68488598af5e4caa4162cd49d45a17592a5078fb Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Wed, 22 Apr 2026 17:26:44 +0200 Subject: [PATCH] Enhance navigation links for borrowed items and tutorials: add conditional rendering for 'Meine Ausleihen' and 'Tutorial' links based on user permissions --- Web/templates/base.html | 53 ++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/Web/templates/base.html b/Web/templates/base.html index 6ee851b..82a1c2c 100755 --- a/Web/templates/base.html +++ b/Web/templates/base.html @@ -911,6 +911,18 @@ Artikel {% endif %} + {% if 'username' in session %} + {% if current_permissions.pages.get('my_borrowed_items', True) %} + + {% endif %} + {% if current_permissions.pages.get('tutorial_page', True) %} + + {% endif %} + {% endif %} {% if 'username' in session and current_permissions.pages.get('upload_admin', True) and current_permissions.actions.get('can_insert', True) %}