{% set nav_title = "⚙ Admin Panel" %} {% set show_admin_link = False %} {% include '_app_nav_header.html' %}
{% set admin_active_tab = "policies" %} {% include '_admin_tabs.html' %}

ABAC policies

{% if error %} {% end %}

Policies ({{ len(policies) }})

{% for p in policies %} {% end %} {% if not policies %} {% end %}
ID Name Effect Actions Priority Condition Status Actions
#{{ p['id'] }}
{{ p['name'] }}
{% if p.get('description') %}
{{ p['description'] }}
{% end %}
{% if p['effect'] == 'permit' %} Permit {% else %} Deny {% end %} {% for action in p['target_actions'] %} {{ action }} {% end %} {{ p['priority'] }} {% set cjson = p.get('condition_json_str', '{}') %} {% if cjson == '{}' %} none {% else %}
{{ cjson.splitlines()[0] }} …
{{ cjson }}
{% end %}
{% if p['enabled'] %} Enabled {% else %} Disabled {% end %}
No policies defined yet.