djLint/tests/source_django/auth_attrs_perms.html
2021-12-14 09:57:37 +01:00

4 lines
271 B
HTML

{% if perms.auth %}Has auth permissions{% endif %}
{% if perms.auth.add_permission %}Has auth.add_permission permissions{% endif %}
{% if perms.nonexistent %}nonexistent perm found{% endif %}
{% if perms.auth.nonexistent in perms %}auth.nonexistent perm found{% endif %}