From 5eadfd42bb26459038e3d0ac6683bdb651f11ae5 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Apr 2024 17:18:57 +0200 Subject: [PATCH] don't show link if the user has no permission --- templates/board/boathouse.html.tera | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/board/boathouse.html.tera b/templates/board/boathouse.html.tera index 5f9e3b7..29e5665 100644 --- a/templates/board/boathouse.html.tera +++ b/templates/board/boathouse.html.tera @@ -7,8 +7,11 @@ {% set aisle = aisle_name ~ "-aisle" %} {% set place = boathouse[aisle][side_name] %} {% if place[level] %} - {{ place[level].1.name }} X + {{ place[level].1.name }} + {% if "admin" in loggedin_user.roles %} + X + {% endif %} {% elif boats | length > 0 %} {% if "admin" in loggedin_user.roles %}