Support for policy upload/download

Plus a small bugfix for groups
This commit is contained in:
2024-12-17 12:10:40 +01:00
parent 7fa17adfb1
commit 31910dc034
10 changed files with 646 additions and 508 deletions

View File

@ -41,16 +41,16 @@
</div>
<div class="col col-6">
<i class="fas fa-angle-right"></i>
{% if auth.groups[0] in config['ADMIN_GROUPS'] %}
{% if not auth.groups[0] or auth.groups[0] in config['ADMIN_GROUPS'] %}
<span class="badge badge-pill badge-warning">
{% else %}
<span class="badge badge-pill badge-dark">
{% endif %}
{{ auth.groups[0]}}
{{ auth.groups[0] | default('no group')}}
</span>
</div>
</div>
{% for group in auth.groups[1:] |sort %}
{% for group in auth.groups[1:] | default([]) |sort %}
<div class="row data">
<div class="col col-2">
&nbsp;