Check permission inside a Django template


Django tip:

A perms variable is available by default in a Django template, so you can render the content based on the permissions:

{% if perms.store.view_inventory %}
    {{ all_inventory_items }}
{% endif %}

For more, check out Permissions in Django.