Разграничесние доступа к запросам

This commit is contained in:
Anton Kamalov
2024-10-24 21:17:22 +03:00
parent e97300f860
commit ec31c49b0e
3 changed files with 6 additions and 4 deletions

View File

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