{% if user.is_authenticated %}

{% comment %}

Permissions

{% endcomment %}
Owner
{{ entity.owner.username }}
Owner access
{% if entity.owner_access == 1 %} None {% elif entity.owner_access == 2 %} View only {% elif entity.owner_access == 3 %} View and edit {% else %} Unknown {% endif %}

Group
{% if entity.group %} {{ entity.group }} {% else %} No associated group {% endif %}
Group access
{% if entity.group_access == 1 %} No Access {% elif entity.group_access == 2 %} View only {% elif entity.group_access == 3 %} View and edit {% else %} Unknown {% endif %}

All other users
{% if entity.world_access == 1 %} No access {% elif entity.world_access == 2 %} View only {% elif entity.world_access == 3 %} View and edit {% else %} {% endif %}
{% endif %}