don't show link if the user has no permission
This commit is contained in:
parent
87307378c6
commit
5eadfd42bb
@ -7,8 +7,11 @@
|
|||||||
{% set aisle = aisle_name ~ "-aisle" %}
|
{% set aisle = aisle_name ~ "-aisle" %}
|
||||||
{% set place = boathouse[aisle][side_name] %}
|
{% set place = boathouse[aisle][side_name] %}
|
||||||
{% if place[level] %}
|
{% if place[level] %}
|
||||||
{{ place[level].1.name }} <a class="btn btn-primary absolute end-0"
|
{{ place[level].1.name }}
|
||||||
href="/board/boathouse/{{ place[level].0 }}/delete">X</a>
|
{% if "admin" in loggedin_user.roles %}
|
||||||
|
<a class="btn btn-primary absolute end-0"
|
||||||
|
href="/board/boathouse/{{ place[level].0 }}/delete">X</a>
|
||||||
|
{% endif %}
|
||||||
{% elif boats | length > 0 %}
|
{% elif boats | length > 0 %}
|
||||||
{% if "admin" in loggedin_user.roles %}
|
{% if "admin" in loggedin_user.roles %}
|
||||||
<details>
|
<details>
|
||||||
|
Loading…
Reference in New Issue
Block a user