Разграничение прав на использование разделов

This commit is contained in:
Anton Kamalov
2024-10-25 11:37:41 +03:00
parent f708df717c
commit 36688b318d
8 changed files with 39 additions and 17 deletions

View File

@@ -12,9 +12,7 @@
<h1>Выберите вариант запроса</h1>
<nav class="menu">
{% for point in options %}
{% if current_role in point['roles'] %}
<a href="{{ url_for(point['url']) }}"><button>{{ point['name'] }}</button></a>
{% endif %}
<a href="{{ url_for(point['url']) }}"><button>{{ point['name'] }}</button></a>
{% endfor %}
</nav>
<div class="return">